summaryrefslogtreecommitdiff
path: root/spec/controllers/import/fogbugz_controller_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/controllers/import/fogbugz_controller_spec.rb')
-rw-r--r--spec/controllers/import/fogbugz_controller_spec.rb13
1 files changed, 11 insertions, 2 deletions
diff --git a/spec/controllers/import/fogbugz_controller_spec.rb b/spec/controllers/import/fogbugz_controller_spec.rb
index c833fbfaea5..aabbcb30358 100644
--- a/spec/controllers/import/fogbugz_controller_spec.rb
+++ b/spec/controllers/import/fogbugz_controller_spec.rb
@@ -2,7 +2,7 @@
require 'spec_helper'
-describe Import::FogbugzController do
+RSpec.describe Import::FogbugzController do
include ImportSpecHelper
let(:user) { create(:user) }
@@ -80,8 +80,17 @@ describe Import::FogbugzController do
describe 'GET status' do
before do
- @repo = OpenStruct.new(name: 'vim')
+ @repo = OpenStruct.new(id: 'demo', name: 'vim')
stub_client(valid?: true)
+ stub_feature_flags(new_import_ui: false)
+ end
+
+ it_behaves_like 'import controller with new_import_ui feature flag' do
+ let(:repo) { @repo }
+ let(:repo_id) { @repo.id }
+ let(:import_source) { @repo.name }
+ let(:provider_name) { 'fogbugz' }
+ let(:client_repos_field) { :repos }
end
it 'assigns variables' do