Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
15bb6daa
Commit
15bb6daa
authored
May 08, 2018
by
Ash McKenzie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflicts in spec/factories/projects.rb
parent
e931893e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
spec/factories/projects.rb
spec/factories/projects.rb
+0
-16
No files found.
spec/factories/projects.rb
View file @
15bb6daa
...
...
@@ -74,18 +74,14 @@ FactoryBot.define do
trait
:import_scheduled
do
import_status
:scheduled
<<<<<<<
HEAD
after
(
:create
)
do
|
project
,
_
|
project
.
import_state
&
.
update_attributes
(
last_update_scheduled_at:
Time
.
now
)
end
=======
>>>>>>>
upstream
/
master
end
trait
:import_started
do
import_status
:started
<<<<<<<
HEAD
after
(
:create
)
do
|
project
,
_
|
project
.
import_state
&
.
update_attributes
(
last_update_started_at:
Time
.
now
)
...
...
@@ -98,17 +94,10 @@ FactoryBot.define do
import_status
:finished
mirror_last_update_at
timestamp
mirror_last_successful_update_at
timestamp
=======
end
trait
:import_finished
do
import_status
:finished
>>>>>>>
upstream
/
master
end
trait
:import_failed
do
import_status
:failed
<<<<<<<
HEAD
mirror_last_update_at
{
Time
.
now
}
end
...
...
@@ -119,8 +108,6 @@ FactoryBot.define do
after
(
:create
)
do
|
project
|
project
.
import_state
&
.
update_attributes
(
retry_count:
Gitlab
::
Mirror
::
MAX_RETRY
+
1
)
end
=======
>>>>>>>
upstream
/
master
end
trait
:disabled_mirror
do
...
...
@@ -216,10 +203,7 @@ FactoryBot.define do
url
"http://foo.com"
enabled
true
end
<<<<<<<
HEAD
=======
>>>>>>>
upstream
/
master
after
(
:create
)
do
|
project
,
evaluator
|
project
.
remote_mirrors
.
create!
(
url:
evaluator
.
url
,
enabled:
evaluator
.
enabled
)
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment