Commit 22d34ab1 authored by Markus Koller's avatar Markus Koller

Merge branch 'issue_344279_MR_create_spec' into 'master'

Fix Style/OpenStructUse offenses create_spec

See merge request gitlab-org/gitlab!75283
parents 0b413349 a4afd6e3
...@@ -2579,7 +2579,6 @@ Style/OpenStructUse: ...@@ -2579,7 +2579,6 @@ Style/OpenStructUse:
- 'spec/graphql/mutations/clusters/agents/delete_spec.rb' - 'spec/graphql/mutations/clusters/agents/delete_spec.rb'
- 'spec/graphql/mutations/commits/create_spec.rb' - 'spec/graphql/mutations/commits/create_spec.rb'
- 'spec/graphql/mutations/merge_requests/accept_spec.rb' - 'spec/graphql/mutations/merge_requests/accept_spec.rb'
- 'spec/graphql/mutations/merge_requests/create_spec.rb'
- 'spec/helpers/application_settings_helper_spec.rb' - 'spec/helpers/application_settings_helper_spec.rb'
- 'spec/helpers/profiles_helper_spec.rb' - 'spec/helpers/profiles_helper_spec.rb'
- 'spec/initializers/doorkeeper_spec.rb' - 'spec/initializers/doorkeeper_spec.rb'
......
...@@ -7,9 +7,10 @@ RSpec.describe Mutations::MergeRequests::Create do ...@@ -7,9 +7,10 @@ RSpec.describe Mutations::MergeRequests::Create do
let_it_be(:project) { create(:project, :public, :repository) } let_it_be(:project) { create(:project, :public, :repository) }
let_it_be(:user) { create(:user) } let_it_be(:user) { create(:user) }
let_it_be(:context) do
let(:context) do
GraphQL::Query::Context.new( GraphQL::Query::Context.new(
query: OpenStruct.new(schema: nil), query: double('query', schema: nil),
values: { current_user: user }, values: { current_user: user },
object: nil object: nil
) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment