fix specs

This commit is contained in:
Juanjo Bazán
2015-08-29 14:16:37 +02:00
committed by Juanjo Bazán
parent 943ddc60fb
commit 29f4976a07
2 changed files with 4 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ feature 'Admin settings' do
within("#edit_setting_#{@setting2.id}") do within("#edit_setting_#{@setting2.id}") do
fill_in "setting_#{@setting2.id}", with: 'Super Users of level 2' fill_in "setting_#{@setting2.id}", with: 'Super Users of level 2'
click_button 'Update Setting' click_button 'Update'
end end
expect(page).to have_content 'Setting updated!' expect(page).to have_content 'Setting updated!'

View File

@@ -85,7 +85,7 @@ feature 'Admin' do
fill_in 'tag_name', with: 'Papeleras' fill_in 'tag_name', with: 'Papeleras'
click_on 'Create Tag' click_on 'Create Topic'
expect(page).to have_content 'Papeleras' expect(page).to have_content 'Papeleras'
end end
@@ -97,7 +97,7 @@ feature 'Admin' do
expect(page).to have_content 'Mi barrio' expect(page).to have_content 'Mi barrio'
click_link 'Delete Tag' click_link 'Delete Topic'
expect(page).not_to have_content 'Mi barrio' expect(page).not_to have_content 'Mi barrio'
end end
@@ -110,7 +110,7 @@ feature 'Admin' do
expect(page).to have_content 'Mi barrio' expect(page).to have_content 'Mi barrio'
check "tag_featured_#{unfeatured_tag.id}" check "tag_featured_#{unfeatured_tag.id}"
click_button 'Update Tag' click_button 'Update Topic'
expect(page).to have_checked_field("tag_featured_#{unfeatured_tag.id}") expect(page).to have_checked_field("tag_featured_#{unfeatured_tag.id}")
end end