Commit 6a409dac authored by Jonas Wälter's avatar Jonas Wälter

Remove unused feature specs

parent e326ffd1
......@@ -5,9 +5,9 @@ require 'spec_helper'
RSpec.describe 'User explores projects' do
context 'when some projects exist' do
let_it_be(:archived_project) { create(:project, :archived) }
let_it_be(:internal_project) { create(:project, :internal, topic_list: 'topic1') }
let_it_be(:internal_project) { create(:project, :internal) }
let_it_be(:private_project) { create(:project, :private) }
let_it_be(:public_project) { create(:project, :public, topic_list: 'topic1') }
let_it_be(:public_project) { create(:project, :public) }
context 'when not signed in' do
context 'when viewing public projects' do
......@@ -28,29 +28,6 @@ RSpec.describe 'User explores projects' do
expect(page).to have_current_path(new_user_session_path)
end
end
context 'when filtering for existing topic' do
before do
visit(explore_projects_path(topic: 'topic1'))
end
it 'shows correct projects', :aggregate_failures do
expect(page).to have_content(public_project.title)
expect(page).not_to have_content(internal_project.title)
expect(page).not_to have_content(private_project.title)
expect(page).not_to have_content(archived_project.title)
end
end
context 'when filtering for non-existing topic' do
before do
visit(explore_projects_path(topic: 'topic2'))
end
it 'shows correct empty state message' do
expect(page).to have_content('Explore public groups to find projects to contribute to.')
end
end
end
context 'when signed in' do
......@@ -111,29 +88,6 @@ RSpec.describe 'User explores projects' do
include_examples 'empty search results'
include_examples 'minimum search length'
end
context 'when filtering for existing topic' do
before do
visit(explore_projects_path(topic: 'topic1'))
end
it 'shows correct projects', :aggregate_failures do
expect(page).to have_content(public_project.title)
expect(page).to have_content(internal_project.title)
expect(page).not_to have_content(private_project.title)
expect(page).not_to have_content(archived_project.title)
end
end
context 'when filtering for non-existing topic' do
before do
visit(explore_projects_path(topic: 'topic2'))
end
it 'shows correct empty state message' do
expect(page).to have_content('Explore public groups to find projects to contribute to.')
end
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment