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
895a9689
Commit
895a9689
authored
Dec 02, 2021
by
Siddharth Asthana
Committed by
Peter Leitzen
Jan 12, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Style/OpenStructUse offense for Gitlab::Database::Migrations::Runner
Changelog: other
parent
62f7c18d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
.rubocop_todo/style/open_struct_use.yml
.rubocop_todo/style/open_struct_use.yml
+0
-1
spec/lib/gitlab/database/migrations/runner_spec.rb
spec/lib/gitlab/database/migrations/runner_spec.rb
+1
-1
No files found.
.rubocop_todo/style/open_struct_use.yml
View file @
895a9689
...
...
@@ -28,7 +28,6 @@ Style/OpenStructUse:
-
spec/helpers/profiles_helper_spec.rb
-
spec/initializers/doorkeeper_spec.rb
-
spec/lib/gitlab/auth/o_auth/provider_spec.rb
-
spec/lib/gitlab/database/migrations/runner_spec.rb
-
spec/lib/gitlab/gitaly_client/blobs_stitcher_spec.rb
-
spec/lib/gitlab/gitaly_client/diff_stitcher_spec.rb
-
spec/lib/gitlab/legacy_github_import/project_creator_spec.rb
...
...
spec/lib/gitlab/database/migrations/runner_spec.rb
View file @
895a9689
...
...
@@ -28,7 +28,7 @@ RSpec.describe Gitlab::Database::Migrations::Runner do
allow
(
ActiveRecord
::
Migrator
).
to
receive
(
:new
)
do
|
dir
,
_all_migrations
,
_schema_migration_class
,
version_to_migrate
|
migrator
=
double
(
ActiveRecord
::
Migrator
)
expect
(
migrator
).
to
receive
(
:run
)
do
migration_runs
<<
OpenStruct
.
new
(
dir:
dir
,
version_to_migrate:
version_to_migrate
)
migration_runs
<<
double
(
'migrator'
,
dir:
dir
,
version_to_migrate:
version_to_migrate
)
end
migrator
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