using explicit texts instead of I18n calls in tests

This commit is contained in:
David Gil
2015-08-12 15:02:59 +02:00
parent a3550a55a5
commit d70d417c87

View File

@@ -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