diff options
Diffstat (limited to 'spec/graphql/mutations/commits/create_spec.rb')
-rw-r--r-- | spec/graphql/mutations/commits/create_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/graphql/mutations/commits/create_spec.rb b/spec/graphql/mutations/commits/create_spec.rb index 097e70bada6..9fc9c731b96 100644 --- a/spec/graphql/mutations/commits/create_spec.rb +++ b/spec/graphql/mutations/commits/create_spec.rb @@ -3,6 +3,8 @@ require 'spec_helper' RSpec.describe Mutations::Commits::Create do + include GraphqlHelpers + subject(:mutation) { described_class.new(object: nil, context: context, field: nil) } let_it_be(:user) { create(:user) } @@ -10,7 +12,7 @@ RSpec.describe Mutations::Commits::Create do let(:context) do GraphQL::Query::Context.new( - query: OpenStruct.new(schema: nil), + query: query_double(schema: nil), # rubocop:disable RSpec/VerifiedDoubles values: { current_user: user }, object: nil ) |