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
005469ac
Commit
005469ac
authored
Jun 05, 2019
by
Bob Van Landuyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use global ids for epics in GraphQL specs
parent
9b59c91f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ee/spec/requests/api/graphql/group/epics_spec.rb
ee/spec/requests/api/graphql/group/epics_spec.rb
+4
-4
No files found.
ee/spec/requests/api/graphql/group/epics_spec.rb
View file @
005469ac
...
...
@@ -50,7 +50,7 @@ describe 'Epics through GroupQuery' do
it
'returns epics successfully'
do
expect
(
response
).
to
have_gitlab_http_status
(
200
)
expect
(
graphql_errors
).
to
be_nil
expect
(
node_array
(
'id'
).
first
).
to
eq
epic
.
id
.
to_s
expect
(
node_array
(
'id'
).
first
).
to
eq
epic
.
to_global_
id
.
to_s
expect
(
graphql_data
[
'group'
][
'epicsEnabled'
]).
to
be_truthy
end
end
...
...
@@ -67,7 +67,7 @@ describe 'Epics through GroupQuery' do
it
'sorts by created_at descending by default'
do
post_graphql
(
query
,
current_user:
user
)
expect_array_response
([
epic2
.
id
,
epic
.
id
])
expect_array_response
([
epic2
.
to_global_id
.
to_s
,
epic
.
to_global_id
.
to_s
])
end
describe
'can admin epics'
do
...
...
@@ -147,7 +147,7 @@ describe 'Epics through GroupQuery' do
it
'returns an epic successfully'
do
expect
(
response
).
to
have_gitlab_http_status
(
:success
)
expect
(
graphql_errors
).
to
be_nil
expect
(
epic_data
[
'id'
]).
to
eq
epic
.
id
.
to_s
expect
(
epic_data
[
'id'
]).
to
eq
epic
.
to_global_
id
.
to_s
expect
(
graphql_data
[
'group'
][
'epicsEnabled'
]).
to
be_truthy
end
end
...
...
@@ -156,7 +156,7 @@ describe 'Epics through GroupQuery' do
def
expect_array_response
(
items
)
expect
(
response
).
to
have_gitlab_http_status
(
:success
)
expect
(
epics_data
).
to
be_an
Array
expect
(
node_array
(
'id'
)
.
map
(
&
:to_i
)
).
to
eq
(
Array
(
items
))
expect
(
node_array
(
'id'
)).
to
eq
(
Array
(
items
))
end
def
node_array
(
extract_attribute
=
nil
)
...
...
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