Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/shared_examples/requests/api/graphql/packages/group_and_project_packages_list_shared_examples.rb')
-rw-r--r--spec/support/shared_examples/requests/api/graphql/packages/group_and_project_packages_list_shared_examples.rb14
1 files changed, 3 insertions, 11 deletions
diff --git a/spec/support/shared_examples/requests/api/graphql/packages/group_and_project_packages_list_shared_examples.rb b/spec/support/shared_examples/requests/api/graphql/packages/group_and_project_packages_list_shared_examples.rb
index 5e9dfc826d4..36832113b30 100644
--- a/spec/support/shared_examples/requests/api/graphql/packages/group_and_project_packages_list_shared_examples.rb
+++ b/spec/support/shared_examples/requests/api/graphql/packages/group_and_project_packages_list_shared_examples.rb
@@ -44,7 +44,7 @@ RSpec.shared_examples 'group and project packages query' do
post_graphql(query, current_user: current_user)
end
- it_behaves_like 'a working graphql query'
+ it_behaves_like 'a working graphql query that returns data'
it 'returns packages successfully' do
expect(package_names).to contain_exactly(
@@ -84,11 +84,7 @@ RSpec.shared_examples 'group and project packages query' do
post_graphql(query, current_user: current_user)
end
- it_behaves_like 'a working graphql query'
-
- it 'returns nil' do
- expect(packages).to be_nil
- end
+ it_behaves_like 'a working graphql query that returns no data'
end
context 'when the user is not authenticated' do
@@ -96,11 +92,7 @@ RSpec.shared_examples 'group and project packages query' do
post_graphql(query)
end
- it_behaves_like 'a working graphql query'
-
- it 'returns nil' do
- expect(packages).to be_nil
- end
+ it_behaves_like 'a working graphql query that returns no data'
end
describe 'sorting and pagination' do