From efbb9a52d882e7a4f53cf4930656ea1517b0b89d Mon Sep 17 00:00:00 2001 From: kikito Date: Wed, 29 Jul 2015 18:47:22 +0200 Subject: [PATCH] Fixes spec: "el " was removed from view --- spec/features/debates_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/features/debates_spec.rb b/spec/features/debates_spec.rb index ae177c49d..e06872416 100644 --- a/spec/features/debates_spec.rb +++ b/spec/features/debates_spec.rb @@ -11,8 +11,8 @@ feature 'Debates' do within first('.debate') do expect(page).to have_content "Debate title" expect(page).to have_content "Debate description" - expect(page).to have_content "el #{I18n.l Date.today}" expect(page).to have_content Debate.first.author.name + expect(page).to have_content I18n.l(Date.today) end end @@ -23,8 +23,8 @@ feature 'Debates' do expect(page).to have_content "Debate title" expect(page).to have_content "Debate description" - expect(page).to have_content "el #{I18n.l Date.today}" expect(page).to have_content debate.author.name + expect(page).to have_content I18n.l(Date.today) end scenario 'Create' do @@ -41,8 +41,8 @@ feature 'Debates' do expect(page).to have_content 'Debate was successfully created.' 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 "el #{I18n.l Date.today}" expect(page).to have_content author.name + expect(page).to have_content I18n.l(Date.today) end scenario 'Update should not be posible if logged user is not the author' do