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
6d4208b2
Commit
6d4208b2
authored
Nov 10, 2021
by
Siddharth Asthana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix offenses introduced by Style/OpenStructUse
Changelog: other
parent
63d7b0b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-1
spec/support/shared_examples/requests/api/nuget_packages_shared_examples.rb
...d_examples/requests/api/nuget_packages_shared_examples.rb
+2
-2
No files found.
.rubocop_manual_todo.yml
View file @
6d4208b2
...
...
@@ -2610,7 +2610,6 @@ Style/OpenStructUse:
-
'
spec/support/helpers/login_helpers.rb'
-
'
spec/support/helpers/repo_helpers.rb'
-
'
spec/support/shared_examples/controllers/githubish_import_controller_shared_examples.rb'
-
'
spec/support/shared_examples/requests/api/nuget_packages_shared_examples.rb'
-
'
spec/tooling/rspec_flaky/flaky_example_spec.rb'
-
'
tooling/rspec_flaky/flaky_example.rb'
...
...
spec/support/shared_examples/requests/api/nuget_packages_shared_examples.rb
View file @
6d4208b2
...
...
@@ -391,7 +391,7 @@ RSpec.shared_examples 'rejects nuget access with invalid target id' do
context
'with a target id with invalid integers'
do
using
RSpec
::
Parameterized
::
TableSyntax
let
(
:target
)
{
OpenStruct
.
new
(
id:
id
)
}
let
(
:target
)
{
double
(
id:
id
)
}
where
(
:id
,
:status
)
do
'/../'
|
:bad_request
...
...
@@ -411,7 +411,7 @@ end
RSpec
.
shared_examples
'rejects nuget access with unknown target id'
do
context
'with an unknown target'
do
let
(
:target
)
{
OpenStruct
.
new
(
id:
1234567890
)
}
let
(
:target
)
{
double
(
id:
1234567890
)
}
context
'as anonymous'
do
it_behaves_like
'rejects nuget packages access'
,
:anonymous
,
:unauthorized
...
...
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