Commit 15bb6daa authored by Ash McKenzie's avatar Ash McKenzie

Resolve conflicts in spec/factories/projects.rb

parent e931893e
...@@ -74,18 +74,14 @@ FactoryBot.define do ...@@ -74,18 +74,14 @@ FactoryBot.define do
trait :import_scheduled do trait :import_scheduled do
import_status :scheduled import_status :scheduled
<<<<<<< HEAD
after(:create) do |project, _| after(:create) do |project, _|
project.import_state&.update_attributes(last_update_scheduled_at: Time.now) project.import_state&.update_attributes(last_update_scheduled_at: Time.now)
end end
=======
>>>>>>> upstream/master
end end
trait :import_started do trait :import_started do
import_status :started import_status :started
<<<<<<< HEAD
after(:create) do |project, _| after(:create) do |project, _|
project.import_state&.update_attributes(last_update_started_at: Time.now) project.import_state&.update_attributes(last_update_started_at: Time.now)
...@@ -98,17 +94,10 @@ FactoryBot.define do ...@@ -98,17 +94,10 @@ FactoryBot.define do
import_status :finished import_status :finished
mirror_last_update_at timestamp mirror_last_update_at timestamp
mirror_last_successful_update_at timestamp mirror_last_successful_update_at timestamp
=======
end
trait :import_finished do
import_status :finished
>>>>>>> upstream/master
end end
trait :import_failed do trait :import_failed do
import_status :failed import_status :failed
<<<<<<< HEAD
mirror_last_update_at { Time.now } mirror_last_update_at { Time.now }
end end
...@@ -119,8 +108,6 @@ FactoryBot.define do ...@@ -119,8 +108,6 @@ FactoryBot.define do
after(:create) do |project| after(:create) do |project|
project.import_state&.update_attributes(retry_count: Gitlab::Mirror::MAX_RETRY + 1) project.import_state&.update_attributes(retry_count: Gitlab::Mirror::MAX_RETRY + 1)
end end
=======
>>>>>>> upstream/master
end end
trait :disabled_mirror do trait :disabled_mirror do
...@@ -216,10 +203,7 @@ FactoryBot.define do ...@@ -216,10 +203,7 @@ FactoryBot.define do
url "http://foo.com" url "http://foo.com"
enabled true enabled true
end end
<<<<<<< HEAD
=======
>>>>>>> upstream/master
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
......
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