Commit 5229e597 authored by Markus Koller's avatar Markus Koller

Merge branch 'issue_344279_accept_spec' into 'master'

Fix Style/OpenStructUse offenses accept_spec

See merge request gitlab-org/gitlab!75281
parents 96126793 444ad423
...@@ -2576,7 +2576,6 @@ Style/OpenStructUse: ...@@ -2576,7 +2576,6 @@ Style/OpenStructUse:
- 'spec/graphql/mutations/clusters/agents/create_spec.rb' - 'spec/graphql/mutations/clusters/agents/create_spec.rb'
- '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/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'
......
...@@ -5,14 +5,14 @@ require 'spec_helper' ...@@ -5,14 +5,14 @@ require 'spec_helper'
RSpec.describe Mutations::MergeRequests::Accept do RSpec.describe Mutations::MergeRequests::Accept do
include AfterNextHelpers include AfterNextHelpers
let_it_be(:user) { create(:user) }
let(:project) { create(:project, :public, :repository) }
subject(:mutation) { described_class.new(context: context, object: nil, field: nil) } subject(:mutation) { described_class.new(context: context, object: nil, field: nil) }
let_it_be(:context) do let_it_be(:user) { create(:user) }
let(:project) { create(:project, :public, :repository) }
let(:context) do
GraphQL::Query::Context.new( GraphQL::Query::Context.new(
query: OpenStruct.new(schema: GitlabSchema), query: double('query', schema: GitlabSchema),
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