Commit 40be7b33 authored by Rémy Coutable's avatar Rémy Coutable

Resolve spec/models/project_spec.rb

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 88eba240
...@@ -1815,7 +1815,6 @@ describe Project do ...@@ -1815,7 +1815,6 @@ describe Project do
end end
describe 'handling import URL' do describe 'handling import URL' do
<<<<<<< HEAD
context 'when project is a mirror' do context 'when project is a mirror' do
it 'returns the full URL' do it 'returns the full URL' do
project = create(:project, :mirror, import_url: 'http://user:pass@test.com') project = create(:project, :mirror, import_url: 'http://user:pass@test.com')
...@@ -1834,14 +1833,6 @@ describe Project do ...@@ -1834,14 +1833,6 @@ describe Project do
expect(project.reload.import_url).to eq('http://test.com') expect(project.reload.import_url).to eq('http://test.com')
end end
=======
it 'returns the sanitized URL' do
project = create(:project, :import_started, import_url: 'http://user:pass@test.com')
project.import_state.finish
expect(project.reload.import_url).to eq('http://test.com')
>>>>>>> upstream/master
end end
end end
...@@ -3732,7 +3723,6 @@ describe Project do ...@@ -3732,7 +3723,6 @@ describe Project do
expect(project.wiki_repository_exists?).to eq(true) expect(project.wiki_repository_exists?).to eq(true)
end end
<<<<<<< HEAD
it 'returns false when the wiki repository does not exist' do it 'returns false when the wiki repository does not exist' do
project = create(:project) project = create(:project)
...@@ -3754,8 +3744,6 @@ describe Project do ...@@ -3754,8 +3744,6 @@ describe Project do
is_expected.to eq(root_ancestor) is_expected.to eq(root_ancestor)
end end
end end
=======
>>>>>>> upstream/master
context 'when namespace is root ancestor' do context 'when namespace is root ancestor' do
let(:parent) { build(:group) } let(:parent) { build(:group) }
......
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