diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index 2b5d6f84776..59a2560ca06 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -1767,10 +1767,6 @@ describe Project, models: true do let!(:project3) { create(:empty_project, namespace: create(:namespace, path: 'namespace')) } let!(:path) { project1.namespace.full_path } - it 'returns 1 project' do - expect(Project.inside_path(path).count).to eq(1) - end - it 'returns correct project' do expect(Project.inside_path(path)).to eq([project1]) end diff --git a/spec/models/route_spec.rb b/spec/models/route_spec.rb index 05afd9f5b5a..171a51fcc5b 100644 --- a/spec/models/route_spec.rb +++ b/spec/models/route_spec.rb @@ -21,10 +21,6 @@ describe Route, models: true do let!(:similar_group) { create(:group, path: 'gitllab') } let!(:another_group_nested) { create(:group, path: 'another', name: 'another', parent: similar_group) } - it 'returns 2 routes' do - expect(Route.inside_path('git_lab').count).to eq(2) - end - it 'returns correct routes' do expect(Route.inside_path('git_lab')).to match_array([nested_group.route, deep_nested_group.route]) end