removes duplicate specs

(already present in features/admin/tags_spec.rb)
This commit is contained in:
Juanjo Bazán
2016-05-11 11:25:35 +02:00
parent ddc8614394
commit ef9546968b

View File

@@ -76,47 +76,4 @@ feature 'Admin' do
expect(page).to_not have_css('#valuation_menu') expect(page).to_not have_css('#valuation_menu')
end end
context 'Tags' do
let(:unfeatured_tag) { create :tag, :unfeatured, name: 'Mi barrio' }
background do
login_as(administrator)
end
scenario 'adding a new tag' do
visit admin_tags_path
fill_in 'tag_name', with: 'Papeleras'
click_on 'Create Topic'
expect(page).to have_content 'Papeleras'
end
scenario 'deleting tag' do
unfeatured_tag
visit admin_tags_path
expect(page).to have_content 'Mi barrio'
click_link 'Destroy Topic'
expect(page).not_to have_content 'Mi barrio'
end
scenario 'marking tags as featured / unfeatured' do
expect(unfeatured_tag).not_to be_featured
visit admin_tags_path
expect(page).to have_content 'Mi barrio'
check "tag_featured_#{unfeatured_tag.id}"
click_button 'Update Topic'
expect(page).to have_checked_field("tag_featured_#{unfeatured_tag.id}")
end
end
end end