Fixes spec: "el " was removed from view

This commit is contained in:
kikito
2015-07-29 18:47:22 +02:00
parent 6d10d97a32
commit efbb9a52d8

View File

@@ -11,8 +11,8 @@ feature 'Debates' do
within first('.debate') do within first('.debate') do
expect(page).to have_content "Debate title" expect(page).to have_content "Debate title"
expect(page).to have_content "Debate description" 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 Debate.first.author.name
expect(page).to have_content I18n.l(Date.today)
end end
end end
@@ -23,8 +23,8 @@ feature 'Debates' do
expect(page).to have_content "Debate title" expect(page).to have_content "Debate title"
expect(page).to have_content "Debate description" 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 debate.author.name
expect(page).to have_content I18n.l(Date.today)
end end
scenario 'Create' do scenario 'Create' do
@@ -41,8 +41,8 @@ feature 'Debates' do
expect(page).to have_content 'Debate was successfully created.' expect(page).to have_content 'Debate was successfully created.'
expect(page).to have_content 'Acabar con los desahucios' 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 '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 author.name
expect(page).to have_content I18n.l(Date.today)
end end
scenario 'Update should not be posible if logged user is not the author' do scenario 'Update should not be posible if logged user is not the author' do