Commit 223b3e83 authored by Peter Leitzen's avatar Peter Leitzen

Merge branch 'issue_344279_runner_spec' into 'master'

Fix Style/OpenStructUse offenses runner_spec

See merge request gitlab-org/gitlab!75323
parents bf6e6f1f 895a9689
...@@ -27,7 +27,6 @@ Style/OpenStructUse: ...@@ -27,7 +27,6 @@ Style/OpenStructUse:
- spec/helpers/profiles_helper_spec.rb - spec/helpers/profiles_helper_spec.rb
- spec/initializers/doorkeeper_spec.rb - spec/initializers/doorkeeper_spec.rb
- spec/lib/gitlab/auth/o_auth/provider_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/blobs_stitcher_spec.rb
- spec/lib/gitlab/gitaly_client/diff_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/legacy_github_import/project_creator_spec.rb
......
...@@ -28,7 +28,7 @@ RSpec.describe Gitlab::Database::Migrations::Runner do ...@@ -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| allow(ActiveRecord::Migrator).to receive(:new) do |dir, _all_migrations, _schema_migration_class, version_to_migrate|
migrator = double(ActiveRecord::Migrator) migrator = double(ActiveRecord::Migrator)
expect(migrator).to receive(:run) do 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 end
migrator migrator
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment