Commit ff65fc59 authored by Mehul Sharma's avatar Mehul Sharma Committed by Aleksei Lipniagov

Fix OpenStruct use in import_url_params_spec

parent aec8fc7a
...@@ -2576,7 +2576,6 @@ Style/OpenStructUse: ...@@ -2576,7 +2576,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