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
518b33fd
Commit
518b33fd
authored
Mar 11, 2021
by
Alex Kalderimis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove test for FE query file
parent
acc6e675
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
34 deletions
+0
-34
spec/requests/api/graphql/snippets_spec.rb
spec/requests/api/graphql/snippets_spec.rb
+0
-34
No files found.
spec/requests/api/graphql/snippets_spec.rb
View file @
518b33fd
...
...
@@ -22,38 +22,4 @@ RSpec.describe 'snippets' do
expect
(
graphql_data_at
(
:snippets
,
:nodes
,
:blobs
,
:nodes
)).
to
be_present
end
end
describe
'snippet_blob_content'
do
let_it_be
(
:query_file
)
do
Rails
.
root
.
join
(
'app/graphql/queries/snippet/snippet_blob_content.query.graphql'
).
read
end
it
'can query for rich snippet blob content'
do
ids
=
snippets
.
map
{
|
s
|
global_id_of
(
s
)
}
vars
=
{
rich:
true
,
paths:
[
'.gitattributes'
],
ids:
ids
}
post_graphql
(
query_file
,
current_user:
current_user
,
variables:
vars
)
expect
(
graphql_data_at
(
:snippets
,
:nodes
,
:blobs
,
:nodes
,
:path
))
.
to
contain_exactly
(
'.gitattributes'
,
'.gitattributes'
,
'.gitattributes'
)
end
it
'can query for plain snippet blob content'
do
ids
=
snippets
.
map
{
|
s
|
global_id_of
(
s
)
}
vars
=
{
rich:
false
,
paths:
[
'.gitattributes'
],
ids:
ids
}
post_graphql
(
query_file
,
current_user:
current_user
,
variables:
vars
)
expect
(
graphql_data_at
(
:snippets
,
:nodes
,
:blobs
,
:nodes
,
:path
))
.
to
contain_exactly
(
'.gitattributes'
,
'.gitattributes'
,
'.gitattributes'
)
end
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