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
611a1b8d
Commit
611a1b8d
authored
Jan 12, 2021
by
Thong Kuah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Autocorrect keyword warnings for specs
parent
0b34288f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
ee/spec/graphql/mutations/compliance_management/frameworks/create_spec.rb
...mutations/compliance_management/frameworks/create_spec.rb
+2
-2
ee/spec/graphql/mutations/incident_management/oncall_schedule/destroy_spec.rb
...tions/incident_management/oncall_schedule/destroy_spec.rb
+1
-1
ee/spec/lib/ee/gitlab/application_context_spec.rb
ee/spec/lib/ee/gitlab/application_context_spec.rb
+1
-1
spec/lib/gitlab/ci/config/entry/variables_spec.rb
spec/lib/gitlab/ci/config/entry/variables_spec.rb
+1
-1
No files found.
ee/spec/graphql/mutations/compliance_management/frameworks/create_spec.rb
View file @
611a1b8d
...
...
@@ -8,7 +8,7 @@ RSpec.describe Mutations::ComplianceManagement::Frameworks::Create do
let
(
:params
)
{
valid_params
}
let
(
:mutation
)
{
described_class
.
new
(
object:
nil
,
context:
{
current_user:
current_user
},
field:
nil
)
}
subject
{
mutation
.
resolve
(
params
)
}
subject
{
mutation
.
resolve
(
**
params
)
}
describe
'#resolve'
do
context
'feature is unlicensed'
do
...
...
@@ -84,7 +84,7 @@ RSpec.describe Mutations::ComplianceManagement::Frameworks::Create do
end
context
'framework parameters are invalid'
do
subject
{
mutation
.
resolve
(
invalid_color_params
)
}
subject
{
mutation
.
resolve
(
**
invalid_color_params
)
}
it
'does not create a new compliance framework'
do
expect
{
subject
}.
not_to
change
{
namespace
.
compliance_management_frameworks
.
count
}
...
...
ee/spec/graphql/mutations/incident_management/oncall_schedule/destroy_spec.rb
View file @
611a1b8d
...
...
@@ -15,7 +15,7 @@ RSpec.describe Mutations::IncidentManagement::OncallSchedule::Destroy do
end
describe
'#resolve'
do
subject
(
:resolve
)
{
mutation_for
(
project
,
current_user
).
resolve
(
args
)
}
subject
(
:resolve
)
{
mutation_for
(
project
,
current_user
).
resolve
(
**
args
)
}
context
'user has access to project'
do
before
do
...
...
ee/spec/lib/ee/gitlab/application_context_spec.rb
View file @
611a1b8d
...
...
@@ -55,7 +55,7 @@ RSpec.describe Gitlab::ApplicationContext do
specify
do
# Build a hash that has all `provided_options` as keys, and `nil` as value
provided_values
=
provided_options
.
map
{
|
key
|
[
key
,
nil
]
}.
to_h
context
=
described_class
.
new
(
provided_values
)
context
=
described_class
.
new
(
**
provided_values
)
expect
(
context
.
to_lazy_hash
.
keys
).
to
contain_exactly
(
*
expected_context_keys
)
end
...
...
spec/lib/gitlab/ci/config/entry/variables_spec.rb
View file @
611a1b8d
...
...
@@ -5,7 +5,7 @@ require 'spec_helper'
RSpec
.
describe
Gitlab
::
Ci
::
Config
::
Entry
::
Variables
do
let
(
:metadata
)
{
{}
}
subject
{
described_class
.
new
(
config
,
metadata
)
}
subject
{
described_class
.
new
(
config
,
**
metadata
)
}
shared_examples
'valid config'
do
describe
'#value'
do
...
...
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