Commit f8a53eab authored by Siddharth Asthana's avatar Siddharth Asthana Committed by Peter Leitzen

Fix Style/OpenStructUse offenses fogbugz_controller_spec

parent 073b67bc
...@@ -13,7 +13,6 @@ Style/OpenStructUse: ...@@ -13,7 +13,6 @@ Style/OpenStructUse:
- lib/gitlab/testing/request_inspector_middleware.rb - lib/gitlab/testing/request_inspector_middleware.rb
- lib/mattermost/session.rb - lib/mattermost/session.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/gitlab_controller_spec.rb - spec/controllers/import/gitlab_controller_spec.rb
- spec/controllers/projects/clusters_controller_spec.rb - spec/controllers/projects/clusters_controller_spec.rb
- spec/factories/go_module_versions.rb - spec/factories/go_module_versions.rb
......
...@@ -79,15 +79,18 @@ RSpec.describe Import::FogbugzController do ...@@ -79,15 +79,18 @@ RSpec.describe Import::FogbugzController do
end end
describe 'GET status' do describe 'GET status' do
let(:repo) do
instance_double(Gitlab::FogbugzImport::Repository,
id: 'demo', name: 'vim', safe_name: 'vim', path: 'vim')
end
before do before do
@repo = OpenStruct.new(id: 'demo', name: 'vim')
stub_client(valid?: true) stub_client(valid?: true)
end end
it_behaves_like 'import controller status' do it_behaves_like 'import controller status' do
let(:repo) { @repo } let(:repo_id) { repo.id }
let(:repo_id) { @repo.id } let(:import_source) { repo.name }
let(:import_source) { @repo.name }
let(:provider_name) { 'fogbugz' } let(:provider_name) { 'fogbugz' }
let(:client_repos_field) { :repos } let(:client_repos_field) { :repos }
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