Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/controllers/ad_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def create
flash[:notice] = 'Ad registered!'
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ごめん、レビュー漏れてたけど、メッセージは日本語で登録してほしい
(他箇所も)

redirect_to(ad_index_path)
else
render('ad/new')
render(new_ad_path)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

render('new') で行けたらそれで

end
end

Expand All @@ -28,7 +28,7 @@ def update
flash[:notice] = 'Ad updated!'
redirect_to(ad_index_path)
else
render('ad/edit')
render(edit_ad_path)
end
end

Expand Down
3 changes: 0 additions & 3 deletions app/jobs/application_job.rb

This file was deleted.

2 changes: 1 addition & 1 deletion spec/features/path_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
describe 'Buttons' do
context 'after new ad created' do
before do
visit 'ad/new'
visit new_ad_path
fill_in 'ad_text', with: 'TextForm'
fill_in 'ad_price', with: '1000'
fill_in 'ad_advertiser_id', with: '1'
Expand Down
6 changes: 0 additions & 6 deletions test/application_system_test_case.rb

This file was deleted.

Empty file removed test/controllers/.keep
Empty file.
40 changes: 0 additions & 40 deletions test/controllers/ad_controller_test.rb

This file was deleted.

Empty file removed test/fixtures/.keep
Empty file.
13 changes: 0 additions & 13 deletions test/fixtures/ads.yml

This file was deleted.

Empty file removed test/fixtures/files/.keep
Empty file.
Empty file removed test/helpers/.keep
Empty file.
Empty file removed test/integration/.keep
Empty file.
Empty file removed test/mailers/.keep
Empty file.
Empty file removed test/models/.keep
Empty file.
8 changes: 0 additions & 8 deletions test/models/ad_test.rb

This file was deleted.

Empty file removed test/system/.keep
Empty file.
11 changes: 0 additions & 11 deletions test/test_helper.rb

This file was deleted.