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
cab0eb27
Commit
cab0eb27
authored
Nov 16, 2021
by
mehulsharma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix OpenStruct use
Fixes OpenStruct use since Ruby 3 discourages it Changelog: other
parent
43c04220
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-1
spec/requests/api/graphql/mutations/design_management/delete_spec.rb
...ts/api/graphql/mutations/design_management/delete_spec.rb
+1
-1
No files found.
.rubocop_manual_todo.yml
View file @
cab0eb27
...
@@ -2607,7 +2607,6 @@ Style/OpenStructUse:
...
@@ -2607,7 +2607,6 @@ Style/OpenStructUse:
-
'
spec/models/design_management/design_at_version_spec.rb'
-
'
spec/models/design_management/design_at_version_spec.rb'
-
'
spec/models/user_spec.rb'
-
'
spec/models/user_spec.rb'
-
'
spec/presenters/packages/nuget/search_results_presenter_spec.rb'
-
'
spec/presenters/packages/nuget/search_results_presenter_spec.rb'
-
'
spec/requests/api/graphql/mutations/design_management/delete_spec.rb'
-
'
spec/requests/api/import_github_spec.rb'
-
'
spec/requests/api/import_github_spec.rb'
-
'
spec/services/packages/nuget/metadata_extraction_service_spec.rb'
-
'
spec/services/packages/nuget/metadata_extraction_service_spec.rb'
-
'
spec/services/projects/import_service_spec.rb'
-
'
spec/services/projects/import_service_spec.rb'
...
...
spec/requests/api/graphql/mutations/design_management/delete_spec.rb
View file @
cab0eb27
...
@@ -53,7 +53,7 @@ RSpec.describe "deleting designs" do
...
@@ -53,7 +53,7 @@ RSpec.describe "deleting designs" do
context
'the designs list contains filenames we cannot find'
do
context
'the designs list contains filenames we cannot find'
do
it_behaves_like
'a failed request'
do
it_behaves_like
'a failed request'
do
let
(
:designs
)
{
%w/foo bar baz/
.
map
{
|
fn
|
OpenStruct
.
new
(
filename:
fn
)
}
}
let
(
:designs
)
{
%w/foo bar baz/
.
map
{
|
fn
|
instance_double
(
'file'
,
filename:
fn
)
}
}
let
(
:the_error
)
{
a_string_matching
%r/filenames were not found/
}
let
(
:the_error
)
{
a_string_matching
%r/filenames were not found/
}
end
end
end
end
...
...
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