Commit 75dc51f0 authored by Aleksei Lipniagov's avatar Aleksei Lipniagov

Merge branch '344279-importurl-openstruct-fix' into 'master'

Fix OpenStruct use in import_url_params_spec

See merge request gitlab-org/gitlab!74403
parents e8eb27d6 ff65fc59
...@@ -2575,7 +2575,6 @@ Style/OpenStructUse: ...@@ -2575,7 +2575,6 @@ Style/OpenStructUse:
- 'lib/mattermost/session.rb' - 'lib/mattermost/session.rb'
- 'spec/bin/feature_flag_spec.rb' - 'spec/bin/feature_flag_spec.rb'
- 'spec/controllers/admin/clusters_controller_spec.rb' - 'spec/controllers/admin/clusters_controller_spec.rb'
- 'spec/controllers/concerns/import_url_params_spec.rb'
- 'spec/controllers/groups/clusters_controller_spec.rb' - 'spec/controllers/groups/clusters_controller_spec.rb'
- 'spec/controllers/import/fogbugz_controller_spec.rb' - 'spec/controllers/import/fogbugz_controller_spec.rb'
- 'spec/controllers/import/gitlab_controller_spec.rb' - 'spec/controllers/import/gitlab_controller_spec.rb'
......
...@@ -4,7 +4,7 @@ require 'spec_helper' ...@@ -4,7 +4,7 @@ require 'spec_helper'
RSpec.describe ImportUrlParams do RSpec.describe ImportUrlParams do
let(:import_url_params) do let(:import_url_params) do
controller = OpenStruct.new(params: params).extend(described_class) controller = double('controller', params: params).extend(described_class)
controller.import_url_params controller.import_url_params
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