Commit 95197ee3 authored by Jarka Kadlecova's avatar Jarka Kadlecova

Remove not necessary specs

parent 74459e0c
...@@ -1767,10 +1767,6 @@ describe Project, models: true do ...@@ -1767,10 +1767,6 @@ describe Project, models: true do
let!(:project3) { create(:empty_project, namespace: create(:namespace, path: 'namespace')) } let!(:project3) { create(:empty_project, namespace: create(:namespace, path: 'namespace')) }
let!(:path) { project1.namespace.full_path } 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 it 'returns correct project' do
expect(Project.inside_path(path)).to eq([project1]) expect(Project.inside_path(path)).to eq([project1])
end end
......
...@@ -21,10 +21,6 @@ describe Route, models: true do ...@@ -21,10 +21,6 @@ describe Route, models: true do
let!(:similar_group) { create(:group, path: 'gitllab') } let!(:similar_group) { create(:group, path: 'gitllab') }
let!(:another_group_nested) { create(:group, path: 'another', name: 'another', parent: similar_group) } 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 it 'returns correct routes' do
expect(Route.inside_path('git_lab')).to match_array([nested_group.route, deep_nested_group.route]) expect(Route.inside_path('git_lab')).to match_array([nested_group.route, deep_nested_group.route])
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