From 6d10d97a32c34278f4ab5ad832a2f3544882a014 Mon Sep 17 00:00:00 2001 From: kikito Date: Wed, 29 Jul 2015 18:46:09 +0200 Subject: [PATCH] Fixes specs: "Por" was removed from the 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 bfaebdada..ae177c49d 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 "Por #{Debate.first.author.name}" expect(page).to have_content "el #{I18n.l Date.today}" + expect(page).to have_content Debate.first.author.name 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 "Por #{debate.author.name}" expect(page).to have_content "el #{I18n.l Date.today}" + expect(page).to have_content debate.author.name 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 "Por #{author.name}" expect(page).to have_content "el #{I18n.l Date.today}" + expect(page).to have_content author.name end scenario 'Update should not be posible if logged user is not the author' do