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/frontend/fixtures/saved_replies.rb')
-rw-r--r--spec/frontend/fixtures/saved_replies.rb46
1 files changed, 0 insertions, 46 deletions
diff --git a/spec/frontend/fixtures/saved_replies.rb b/spec/frontend/fixtures/saved_replies.rb
deleted file mode 100644
index c80ba06bca1..00000000000
--- a/spec/frontend/fixtures/saved_replies.rb
+++ /dev/null
@@ -1,46 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-
-RSpec.describe GraphQL::Query, type: :request, feature_category: :user_profile do
- include JavaScriptFixturesHelpers
- include ApiHelpers
- include GraphqlHelpers
-
- let_it_be(:current_user) { create(:user) }
-
- before do
- sign_in(current_user)
- end
-
- context 'when user has no saved replies' do
- base_input_path = 'saved_replies/queries/'
- base_output_path = 'graphql/saved_replies/'
- query_name = 'saved_replies.query.graphql'
-
- it "#{base_output_path}saved_replies_empty.query.graphql.json" do
- query = get_graphql_query_as_string("#{base_input_path}#{query_name}")
-
- post_graphql(query, current_user: current_user)
-
- expect_graphql_errors_to_be_empty
- end
- end
-
- context 'when user has saved replies' do
- base_input_path = 'saved_replies/queries/'
- base_output_path = 'graphql/saved_replies/'
- query_name = 'saved_replies.query.graphql'
-
- it "#{base_output_path}saved_replies.query.graphql.json" do
- create(:saved_reply, user: current_user)
- create(:saved_reply, user: current_user)
-
- query = get_graphql_query_as_string("#{base_input_path}#{query_name}")
-
- post_graphql(query, current_user: current_user)
-
- expect_graphql_errors_to_be_empty
- end
- end
-end