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
33879d1a
Commit
33879d1a
authored
Jun 30, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix conflicts in specs
parent
9c5283de
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
0 additions
and
30 deletions
+0
-30
spec/policies/group_policy_spec.rb
spec/policies/group_policy_spec.rb
+0
-3
spec/policies/project_policy_spec.rb
spec/policies/project_policy_spec.rb
+0
-3
spec/policies/project_snippet_policy_spec.rb
spec/policies/project_snippet_policy_spec.rb
+0
-6
spec/requests/api/namespaces_spec.rb
spec/requests/api/namespaces_spec.rb
+0
-10
spec/requests/api/projects_spec.rb
spec/requests/api/projects_spec.rb
+0
-4
spec/requests/api/v3/projects_spec.rb
spec/requests/api/v3/projects_spec.rb
+0
-4
No files found.
spec/policies/group_policy_spec.rb
View file @
33879d1a
...
@@ -204,7 +204,6 @@ describe GroupPolicy, models: true do
...
@@ -204,7 +204,6 @@ describe GroupPolicy, models: true do
expect_allowed
(
*
reporter_permissions
)
expect_allowed
(
*
reporter_permissions
)
expect_allowed
(
*
master_permissions
)
expect_allowed
(
*
master_permissions
)
expect_allowed
(
*
owner_permissions
)
expect_allowed
(
*
owner_permissions
)
<<<<<<<
HEAD
end
end
end
end
...
@@ -215,8 +214,6 @@ describe GroupPolicy, models: true do
...
@@ -215,8 +214,6 @@ describe GroupPolicy, models: true do
is_expected
.
to
be_allowed
(
:read_group
)
is_expected
.
to
be_allowed
(
:read_group
)
is_expected
.
to
be_disallowed
(
*
master_permissions
)
is_expected
.
to
be_disallowed
(
*
master_permissions
)
is_expected
.
to
be_disallowed
(
*
owner_permissions
)
is_expected
.
to
be_disallowed
(
*
owner_permissions
)
=======
>>>>>>>
ce
/
master
end
end
end
end
end
end
...
...
spec/policies/project_policy_spec.rb
View file @
33879d1a
...
@@ -236,7 +236,6 @@ describe ProjectPolicy, models: true do
...
@@ -236,7 +236,6 @@ describe ProjectPolicy, models: true do
expect_allowed
(
*
developer_permissions
)
expect_allowed
(
*
developer_permissions
)
expect_allowed
(
*
master_permissions
)
expect_allowed
(
*
master_permissions
)
expect_allowed
(
*
owner_permissions
)
expect_allowed
(
*
owner_permissions
)
<<<<<<<
HEAD
end
end
end
end
...
@@ -248,8 +247,6 @@ describe ProjectPolicy, models: true do
...
@@ -248,8 +247,6 @@ describe ProjectPolicy, models: true do
is_expected
.
to
be_disallowed
(
*
master_permissions
)
is_expected
.
to
be_disallowed
(
*
master_permissions
)
is_expected
.
to
be_disallowed
(
*
owner_permissions
)
is_expected
.
to
be_disallowed
(
*
owner_permissions
)
is_expected
.
to
be_allowed
(
*
auditor_permissions
)
is_expected
.
to
be_allowed
(
*
auditor_permissions
)
=======
>>>>>>>
ce
/
master
end
end
end
end
end
end
...
...
spec/policies/project_snippet_policy_spec.rb
View file @
33879d1a
...
@@ -93,7 +93,6 @@ describe ProjectSnippetPolicy, models: true do
...
@@ -93,7 +93,6 @@ describe ProjectSnippetPolicy, models: true do
it
do
it
do
expect_allowed
(
:read_project_snippet
)
expect_allowed
(
:read_project_snippet
)
expect_disallowed
(
*
author_permissions
)
expect_disallowed
(
*
author_permissions
)
<<<<<<<
HEAD
end
end
end
end
...
@@ -104,8 +103,6 @@ describe ProjectSnippetPolicy, models: true do
...
@@ -104,8 +103,6 @@ describe ProjectSnippetPolicy, models: true do
it
do
it
do
is_expected
.
to
be_disallowed
(
:read_project_snippet
)
is_expected
.
to
be_disallowed
(
:read_project_snippet
)
is_expected
.
to
be_disallowed
(
*
author_permissions
)
is_expected
.
to
be_disallowed
(
*
author_permissions
)
=======
>>>>>>>
ce
/
master
end
end
end
end
end
end
...
@@ -163,7 +160,6 @@ describe ProjectSnippetPolicy, models: true do
...
@@ -163,7 +160,6 @@ describe ProjectSnippetPolicy, models: true do
it
do
it
do
expect_allowed
(
:read_project_snippet
)
expect_allowed
(
:read_project_snippet
)
expect_disallowed
(
*
author_permissions
)
expect_disallowed
(
*
author_permissions
)
<<<<<<<
HEAD
end
end
end
end
...
@@ -174,8 +170,6 @@ describe ProjectSnippetPolicy, models: true do
...
@@ -174,8 +170,6 @@ describe ProjectSnippetPolicy, models: true do
it
do
it
do
is_expected
.
to
be_allowed
(
:read_project_snippet
)
is_expected
.
to
be_allowed
(
:read_project_snippet
)
is_expected
.
to
be_disallowed
(
*
author_permissions
)
is_expected
.
to
be_disallowed
(
*
author_permissions
)
=======
>>>>>>>
ce
/
master
end
end
end
end
...
...
spec/requests/api/namespaces_spec.rb
View file @
33879d1a
...
@@ -24,17 +24,11 @@ describe API::Namespaces do
...
@@ -24,17 +24,11 @@ describe API::Namespaces do
expect
(
response
).
to
have_http_status
(
200
)
expect
(
response
).
to
have_http_status
(
200
)
expect
(
response
).
to
include_pagination_headers
expect
(
response
).
to
include_pagination_headers
expect
(
group_kind_json_response
.
keys
).
to
contain_exactly
(
'id'
,
'kind'
,
'name'
,
'path'
,
'full_path'
,
expect
(
group_kind_json_response
.
keys
).
to
contain_exactly
(
'id'
,
'kind'
,
'name'
,
'path'
,
'full_path'
,
<<<<<<<
HEAD
'parent_id'
,
'members_count_with_descendants'
,
'parent_id'
,
'members_count_with_descendants'
,
'plan'
,
'shared_runners_minutes_limit'
)
'plan'
,
'shared_runners_minutes_limit'
)
expect
(
user_kind_json_response
.
keys
).
to
contain_exactly
(
'id'
,
'kind'
,
'name'
,
'path'
,
'full_path'
,
expect
(
user_kind_json_response
.
keys
).
to
contain_exactly
(
'id'
,
'kind'
,
'name'
,
'path'
,
'full_path'
,
'parent_id'
,
'plan'
,
'shared_runners_minutes_limit'
)
'parent_id'
,
'plan'
,
'shared_runners_minutes_limit'
)
=======
'parent_id'
,
'members_count_with_descendants'
)
expect
(
user_kind_json_response
.
keys
).
to
contain_exactly
(
'id'
,
'kind'
,
'name'
,
'path'
,
'full_path'
,
'parent_id'
)
>>>>>>>
ce
/
master
end
end
it
"admin: returns an array of all namespaces"
do
it
"admin: returns an array of all namespaces"
do
...
@@ -67,11 +61,7 @@ describe API::Namespaces do
...
@@ -67,11 +61,7 @@ describe API::Namespaces do
owned_group_response
=
json_response
.
find
{
|
resource
|
resource
[
'id'
]
==
group1
.
id
}
owned_group_response
=
json_response
.
find
{
|
resource
|
resource
[
'id'
]
==
group1
.
id
}
expect
(
owned_group_response
.
keys
).
to
contain_exactly
(
'id'
,
'kind'
,
'name'
,
'path'
,
'full_path'
,
expect
(
owned_group_response
.
keys
).
to
contain_exactly
(
'id'
,
'kind'
,
'name'
,
'path'
,
'full_path'
,
<<<<<<<
HEAD
'plan'
,
'parent_id'
,
'members_count_with_descendants'
)
'plan'
,
'parent_id'
,
'members_count_with_descendants'
)
=======
'parent_id'
,
'members_count_with_descendants'
)
>>>>>>>
ce
/
master
end
end
it
"returns correct attributes when user cannot admin group"
do
it
"returns correct attributes when user cannot admin group"
do
...
...
spec/requests/api/projects_spec.rb
View file @
33879d1a
...
@@ -749,12 +749,8 @@ describe API::Projects do
...
@@ -749,12 +749,8 @@ describe API::Projects do
'path'
=>
user
.
namespace
.
path
,
'path'
=>
user
.
namespace
.
path
,
'kind'
=>
user
.
namespace
.
kind
,
'kind'
=>
user
.
namespace
.
kind
,
'full_path'
=>
user
.
namespace
.
full_path
,
'full_path'
=>
user
.
namespace
.
full_path
,
<<<<<<<
HEAD
'parent_id'
=>
nil
,
'parent_id'
=>
nil
,
'plan'
=>
nil
'plan'
=>
nil
=======
'parent_id'
=>
nil
>>>>>>>
ce
/
master
})
})
end
end
...
...
spec/requests/api/v3/projects_spec.rb
View file @
33879d1a
...
@@ -786,12 +786,8 @@ describe API::V3::Projects do
...
@@ -786,12 +786,8 @@ describe API::V3::Projects do
'path'
=>
user
.
namespace
.
path
,
'path'
=>
user
.
namespace
.
path
,
'kind'
=>
user
.
namespace
.
kind
,
'kind'
=>
user
.
namespace
.
kind
,
'full_path'
=>
user
.
namespace
.
full_path
,
'full_path'
=>
user
.
namespace
.
full_path
,
<<<<<<<
HEAD
'parent_id'
=>
nil
,
'parent_id'
=>
nil
,
'plan'
=>
nil
'plan'
=>
nil
=======
'parent_id'
=>
nil
>>>>>>>
ce
/
master
})
})
end
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