Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
444ad423
Commit
444ad423
authored
Nov 25, 2021
by
Siddharth Asthana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Style/OpenStructUse offenses
Changelog: other
parent
a8802520
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-1
spec/graphql/mutations/merge_requests/accept_spec.rb
spec/graphql/mutations/merge_requests/accept_spec.rb
+5
-5
No files found.
.rubocop_manual_todo.yml
View file @
444ad423
...
...
@@ -2578,7 +2578,6 @@ Style/OpenStructUse:
-
'
spec/graphql/mutations/clusters/agents/create_spec.rb'
-
'
spec/graphql/mutations/clusters/agents/delete_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/profiles_helper_spec.rb'
-
'
spec/initializers/doorkeeper_spec.rb'
...
...
spec/graphql/mutations/merge_requests/accept_spec.rb
View file @
444ad423
...
...
@@ -5,14 +5,14 @@ require 'spec_helper'
RSpec
.
describe
Mutations
::
MergeRequests
::
Accept
do
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
)
}
let_it_be
(
:context
)
do
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
:repository
)
}
let
(
:context
)
do
GraphQL
::
Query
::
Context
.
new
(
query:
OpenStruct
.
new
(
schema:
GitlabSchema
),
query:
double
(
'query'
,
schema:
GitlabSchema
),
values:
{
current_user:
user
},
object:
nil
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment