Commit a379eb99 authored by Sean McGivern's avatar Sean McGivern

Resolve conflicts in spec/factories/projects.rb

parent 9cb21bf9
...@@ -183,7 +183,6 @@ FactoryBot.define do ...@@ -183,7 +183,6 @@ FactoryBot.define do
end end
end end
<<<<<<< HEAD
trait :remote_mirror do trait :remote_mirror do
transient do transient do
remote_name "remote_mirror_#{SecureRandom.hex}" remote_name "remote_mirror_#{SecureRandom.hex}"
...@@ -193,12 +192,13 @@ FactoryBot.define do ...@@ -193,12 +192,13 @@ FactoryBot.define do
after(:create) do |project, evaluator| after(:create) do |project, evaluator|
project.remote_mirrors.create!(url: evaluator.url, enabled: evaluator.enabled) project.remote_mirrors.create!(url: evaluator.url, enabled: evaluator.enabled)
======= end
end
trait :stubbed_repository do trait :stubbed_repository do
after(:build) do |project| after(:build) do |project|
allow(project).to receive(:empty_repo?).and_return(false) allow(project).to receive(:empty_repo?).and_return(false)
allow(project.repository).to receive(:empty?).and_return(false) allow(project.repository).to receive(:empty?).and_return(false)
>>>>>>> upstream/master
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