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
60451303
Commit
60451303
authored
Nov 16, 2021
by
mehulsharma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix OpenStruct use
Fixed OpenStruct use as Ruby 3 discourages it Changelog: other
parent
4dac986c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
.rubocop_manual_todo.yml
.rubocop_manual_todo.yml
+0
-1
spec/requests/api/import_github_spec.rb
spec/requests/api/import_github_spec.rb
+3
-3
No files found.
.rubocop_manual_todo.yml
View file @
60451303
...
@@ -2605,7 +2605,6 @@ Style/OpenStructUse:
...
@@ -2605,7 +2605,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/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/services/system_note_service_spec.rb'
-
'
spec/services/system_note_service_spec.rb'
...
...
spec/requests/api/import_github_spec.rb
View file @
60451303
...
@@ -11,12 +11,12 @@ RSpec.describe API::ImportGithub do
...
@@ -11,12 +11,12 @@ RSpec.describe API::ImportGithub do
let
(
:user
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:provider_username
)
{
user
.
username
}
let
(
:provider_username
)
{
user
.
username
}
let
(
:provider_user
)
{
OpenStruct
.
new
(
login:
provider_username
)
}
let
(
:provider_user
)
{
double
(
'provider'
,
login:
provider_username
)
}
let
(
:provider_repo
)
do
let
(
:provider_repo
)
do
OpenStruct
.
new
(
double
(
'provider'
,
name:
'vim'
,
name:
'vim'
,
full_name:
"
#{
provider_username
}
/vim"
,
full_name:
"
#{
provider_username
}
/vim"
,
owner:
OpenStruct
.
new
(
login:
provider_username
)
owner:
double
(
'provider'
,
login:
provider_username
)
)
)
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