fix specs
This commit is contained in:
committed by
Juanjo Bazán
parent
943ddc60fb
commit
29f4976a07
@@ -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!'
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user