Commit cbbbd0b8 authored by Siddharth Asthana's avatar Siddharth Asthana

Fix Style/OpenStructUse offenses

Changelog: other
parent 61f6c080
...@@ -2564,7 +2564,6 @@ Style/OpenStructUse: ...@@ -2564,7 +2564,6 @@ Style/OpenStructUse:
- 'lib/gitlab/import_export/after_export_strategies/base_after_export_strategy.rb' - 'lib/gitlab/import_export/after_export_strategies/base_after_export_strategy.rb'
- 'lib/gitlab/testing/request_inspector_middleware.rb' - 'lib/gitlab/testing/request_inspector_middleware.rb'
- 'lib/mattermost/session.rb' - 'lib/mattermost/session.rb'
- 'spec/bin/feature_flag_spec.rb'
- 'spec/controllers/admin/clusters_controller_spec.rb' - 'spec/controllers/admin/clusters_controller_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'
......
...@@ -239,7 +239,7 @@ RSpec.describe 'bin/feature-flag' do ...@@ -239,7 +239,7 @@ RSpec.describe 'bin/feature-flag' do
end end
describe '.read_rollout_issue_url' do describe '.read_rollout_issue_url' do
let(:options) { OpenStruct.new(name: 'foo', type: :development) } let(:options) { double('options', name: 'foo', type: :development) }
let(:url) { 'https://issue' } let(:url) { 'https://issue' }
it 'reads type from $stdin' do it 'reads type from $stdin' do
...@@ -265,7 +265,7 @@ RSpec.describe 'bin/feature-flag' do ...@@ -265,7 +265,7 @@ RSpec.describe 'bin/feature-flag' do
end end
describe '.read_ee_only' do describe '.read_ee_only' do
let(:options) { OpenStruct.new(name: 'foo', type: :development) } let(:options) { double('options', name: 'foo', type: :development) }
it { expect(described_class.read_ee_only(options)).to eq(false) } it { expect(described_class.read_ee_only(options)).to eq(false) }
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