Skip to content

Commit

Permalink
テストにassertを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
ai-24 committed Jun 22, 2022
1 parent 143d558 commit 102f977
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/system/questions_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,7 @@ class QuestionsTest < ApplicationSystemTestCase

test 'show confirm dialog before delete' do
visit_with_auth question_path(questions(:question8)), 'kimura'
dismiss_confirm('自己解決した場合は削除せずに回答を書き込んでください。本当に削除しますか?') do
click_link '削除する'
end
confirm_dialog = dismiss_confirm { click_link '削除する' }
assert_equal '自己解決した場合は削除せずに回答を書き込んでください。本当に削除しますか?', confirm_dialog
end
end

0 comments on commit 102f977

Please sign in to comment.