uses timezone aware method instead of Date

This commit is contained in:
Juanjo Bazán
2015-08-16 00:16:41 +02:00
committed by Juanjo Bazán
parent e2e1783418
commit 7cc7efb2c7

View File

@@ -24,7 +24,7 @@ feature 'Debates' do
expect(page).to have_content debate.title
expect(page).to have_content "Debate description"
expect(page).to have_content debate.author.name
expect(page).to have_content I18n.l(Date.today)
expect(page).to have_content I18n.l(debate.created_at.to_date)
expect(page).to have_selector(avatar(debate.author.name), count: 1)
within('.social-share-button') do
@@ -48,7 +48,7 @@ feature 'Debates' do
expect(page).to have_content 'Acabar con los desahucios'
expect(page).to have_content 'Esto es un tema muy importante porque...'
expect(page).to have_content author.name
expect(page).to have_content I18n.l(Date.today)
expect(page).to have_content I18n.l(Debate.last.created_at.to_date)
end
scenario 'Captcha is required for debate creation' do