using explicit texts instead of I18n calls in tests
This commit is contained in:
@@ -10,7 +10,7 @@ feature 'Comments' do
|
||||
visit debate_path(debate)
|
||||
|
||||
expect(page).to have_css('.comment', count: 3)
|
||||
expect(page).to have_content I18n.t('debates.debate.comments', count: 3)
|
||||
expect(page).to have_content '3 Comments'
|
||||
|
||||
comment = Comment.first
|
||||
within first('.comment') do
|
||||
@@ -85,10 +85,10 @@ feature 'Comments' do
|
||||
|
||||
visit debate_path(debate)
|
||||
expect(page).to have_css(".comment.comment.comment.comment.comment.comment.comment.comment")
|
||||
expect(page).to have_content I18n.t('debates.debate.comments', count: 8)
|
||||
expect(page).to have_content '8 Comments'
|
||||
|
||||
within first('.comment') do
|
||||
expect(page).to have_content I18n.t('debates.comment.responses', count: 1)
|
||||
expect(page).to have_content '1 Response'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user