From 7cc7efb2c700c6d715ec98fe8da560e0e18e08c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baza=CC=81n?= Date: Sun, 16 Aug 2015 00:16:41 +0200 Subject: [PATCH] uses timezone aware method instead of Date --- spec/features/debates_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/debates_spec.rb b/spec/features/debates_spec.rb index ac50d7ec9..cb89e1c6b 100644 --- a/spec/features/debates_spec.rb +++ b/spec/features/debates_spec.rb @@ -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