diff --git a/spec/features/admin_spec.rb b/spec/features/admin_spec.rb index 1561a60a8..9ef1b334e 100644 --- a/spec/features/admin_spec.rb +++ b/spec/features/admin_spec.rb @@ -76,47 +76,4 @@ feature 'Admin' do expect(page).to_not have_css('#valuation_menu') 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