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
0e4f747b
Commit
0e4f747b
authored
Aug 03, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CE->EE merge: fix conflicts to get specs runnable again
parent
866b3ff6
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
4 additions
and
32 deletions
+4
-32
spec/factories/boards.rb
spec/factories/boards.rb
+0
-3
spec/factories/forked_project_links.rb
spec/factories/forked_project_links.rb
+0
-4
spec/factories/issues.rb
spec/factories/issues.rb
+0
-3
spec/factories/projects.rb
spec/factories/projects.rb
+0
-3
spec/factories/protected_branches.rb
spec/factories/protected_branches.rb
+0
-9
spec/factories/protected_tags.rb
spec/factories/protected_tags.rb
+0
-6
spec/spec_helper.rb
spec/spec_helper.rb
+4
-4
No files found.
spec/factories/boards.rb
View file @
0e4f747b
FactoryGirl
.
define
do
FactoryGirl
.
define
do
factory
:board
do
factory
:board
do
<<<<<<<
HEAD
sequence
(
:name
)
{
|
n
|
"board
#{
n
}
"
}
sequence
(
:name
)
{
|
n
|
"board
#{
n
}
"
}
=======
>>>>>>>
ce
/
master
project
project
after
(
:create
)
do
|
board
|
after
(
:create
)
do
|
board
|
...
...
spec/factories/forked_project_links.rb
View file @
0e4f747b
...
@@ -9,11 +9,7 @@ FactoryGirl.define do
...
@@ -9,11 +9,7 @@ FactoryGirl.define do
end
end
trait
:forked_to_empty_project
do
trait
:forked_to_empty_project
do
<<<<<<<
HEAD
association
:forked_to_project
,
factory: :project
association
:forked_to_project
,
factory: :project
=======
association
:forked_to_project
,
factory:
[
:project
,
:repository
]
>>>>>>>
ce
/
master
end
end
end
end
end
end
spec/factories/issues.rb
View file @
0e4f747b
...
@@ -14,10 +14,7 @@ FactoryGirl.define do
...
@@ -14,10 +14,7 @@ FactoryGirl.define do
trait
:closed
do
trait
:closed
do
state
:closed
state
:closed
<<<<<<<
HEAD
closed_at
Time
.
now
closed_at
Time
.
now
=======
>>>>>>>
ce
/
master
end
end
factory
:closed_issue
,
traits:
[
:closed
]
factory
:closed_issue
,
traits:
[
:closed
]
...
...
spec/factories/projects.rb
View file @
0e4f747b
...
@@ -113,7 +113,6 @@ FactoryGirl.define do
...
@@ -113,7 +113,6 @@ FactoryGirl.define do
# We delete hooks so that gitlab-shell will not try to authenticate with
# We delete hooks so that gitlab-shell will not try to authenticate with
# an API that isn't running
# an API that isn't running
FileUtils
.
rm_r
(
File
.
join
(
project
.
repository_storage_path
,
"
#{
project
.
disk_path
}
.git"
,
'hooks'
))
FileUtils
.
rm_r
(
File
.
join
(
project
.
repository_storage_path
,
"
#{
project
.
disk_path
}
.git"
,
'hooks'
))
<<<<<<<
HEAD
end
end
end
end
...
@@ -125,8 +124,6 @@ FactoryGirl.define do
...
@@ -125,8 +124,6 @@ FactoryGirl.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
)
=======
>>>>>>>
ce
/
master
end
end
end
end
...
...
spec/factories/protected_branches.rb
View file @
0e4f747b
...
@@ -4,15 +4,12 @@ FactoryGirl.define do
...
@@ -4,15 +4,12 @@ FactoryGirl.define do
project
project
transient
do
transient
do
<<<<<<<
HEAD
# EE
# EE
authorize_user_to_push
nil
authorize_user_to_push
nil
authorize_user_to_merge
nil
authorize_user_to_merge
nil
authorize_group_to_push
nil
authorize_group_to_push
nil
authorize_group_to_merge
nil
authorize_group_to_merge
nil
=======
>>>>>>>
ce
/
master
default_push_level
true
default_push_level
true
default_merge_level
true
default_merge_level
true
default_access_level
true
default_access_level
true
...
@@ -59,7 +56,6 @@ FactoryGirl.define do
...
@@ -59,7 +56,6 @@ FactoryGirl.define do
end
end
after
(
:build
)
do
|
protected_branch
,
evaluator
|
after
(
:build
)
do
|
protected_branch
,
evaluator
|
<<<<<<<
HEAD
# EE
# EE
if
user
=
evaluator
.
authorize_user_to_push
if
user
=
evaluator
.
authorize_user_to_push
protected_branch
.
push_access_levels
.
new
(
user:
user
)
protected_branch
.
push_access_levels
.
new
(
user:
user
)
...
@@ -75,22 +71,17 @@ FactoryGirl.define do
...
@@ -75,22 +71,17 @@ FactoryGirl.define do
end
end
next
unless
protected_branch
.
merge_access_levels
.
empty?
next
unless
protected_branch
.
merge_access_levels
.
empty?
=======
>>>>>>>
ce
/
master
if
evaluator
.
default_access_level
&&
evaluator
.
default_push_level
if
evaluator
.
default_access_level
&&
evaluator
.
default_push_level
protected_branch
.
push_access_levels
.
new
(
access_level:
Gitlab
::
Access
::
MASTER
)
protected_branch
.
push_access_levels
.
new
(
access_level:
Gitlab
::
Access
::
MASTER
)
end
end
if
evaluator
.
default_access_level
&&
evaluator
.
default_merge_level
if
evaluator
.
default_access_level
&&
evaluator
.
default_merge_level
protected_branch
.
merge_access_levels
.
new
(
access_level:
Gitlab
::
Access
::
MASTER
)
protected_branch
.
merge_access_levels
.
new
(
access_level:
Gitlab
::
Access
::
MASTER
)
<<<<<<<
HEAD
=======
end
end
end
end
trait
:no_one_can_merge
do
trait
:no_one_can_merge
do
after
(
:create
)
do
|
protected_branch
|
after
(
:create
)
do
|
protected_branch
|
protected_branch
.
merge_access_levels
.
first
.
update!
(
access_level:
Gitlab
::
Access
::
NO_ACCESS
)
protected_branch
.
merge_access_levels
.
first
.
update!
(
access_level:
Gitlab
::
Access
::
NO_ACCESS
)
>>>>>>>
ce
/
master
end
end
end
end
end
end
...
...
spec/factories/protected_tags.rb
View file @
0e4f747b
...
@@ -4,13 +4,10 @@ FactoryGirl.define do
...
@@ -4,13 +4,10 @@ FactoryGirl.define do
project
project
transient
do
transient
do
<<<<<<<
HEAD
# EE
# EE
authorize_user_to_create
nil
authorize_user_to_create
nil
authorize_group_to_create
nil
authorize_group_to_create
nil
=======
>>>>>>>
ce
/
master
default_access_level
true
default_access_level
true
end
end
...
@@ -45,7 +42,6 @@ FactoryGirl.define do
...
@@ -45,7 +42,6 @@ FactoryGirl.define do
end
end
after
(
:build
)
do
|
protected_tag
,
evaluator
|
after
(
:build
)
do
|
protected_tag
,
evaluator
|
<<<<<<<
HEAD
# EE
# EE
if
evaluator
.
authorize_user_to_create
if
evaluator
.
authorize_user_to_create
protected_tag
.
create_access_levels
.
new
(
user:
evaluator
.
authorize_user_to_create
)
protected_tag
.
create_access_levels
.
new
(
user:
evaluator
.
authorize_user_to_create
)
...
@@ -54,8 +50,6 @@ FactoryGirl.define do
...
@@ -54,8 +50,6 @@ FactoryGirl.define do
protected_tag
.
create_access_levels
.
new
(
group:
evaluator
.
authorize_group_to_create
)
protected_tag
.
create_access_levels
.
new
(
group:
evaluator
.
authorize_group_to_create
)
end
end
=======
>>>>>>>
ce
/
master
if
evaluator
.
default_access_level
if
evaluator
.
default_access_level
protected_tag
.
create_access_levels
.
new
(
access_level:
Gitlab
::
Access
::
MASTER
)
protected_tag
.
create_access_levels
.
new
(
access_level:
Gitlab
::
Access
::
MASTER
)
end
end
...
...
spec/spec_helper.rb
View file @
0e4f747b
...
@@ -59,12 +59,12 @@ RSpec.configure do |config|
...
@@ -59,12 +59,12 @@ RSpec.configure do |config|
config
.
include
Gitlab
::
Routing
,
type: :routing
config
.
include
Gitlab
::
Routing
,
type: :routing
config
.
include
MigrationsHelpers
,
:migration
config
.
include
MigrationsHelpers
,
:migration
config
.
include
StubFeatureFlags
config
.
include
StubFeatureFlags
<<<<<<<
HEAD
config
.
include
StubENV
# EE only
config
.
include
EE
::
LicenseHelpers
config
.
include
EE
::
LicenseHelpers
config
.
include
Rails
.
application
.
routes
.
url_helpers
,
type: :routing
config
.
include
Rails
.
application
.
routes
.
url_helpers
,
type: :routing
=======
config
.
include
StubENV
>>>>>>>
ce
/
master
config
.
infer_spec_type_from_file_location!
config
.
infer_spec_type_from_file_location!
...
...
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