diff options
Diffstat (limited to 'spec/controllers/import/gitlab_controller_spec.rb')
-rw-r--r-- | spec/controllers/import/gitlab_controller_spec.rb | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/spec/controllers/import/gitlab_controller_spec.rb b/spec/controllers/import/gitlab_controller_spec.rb index 96a8eb99d5c..1cd0593f762 100644 --- a/spec/controllers/import/gitlab_controller_spec.rb +++ b/spec/controllers/import/gitlab_controller_spec.rb @@ -2,7 +2,7 @@ require 'spec_helper' -describe Import::GitlabController do +RSpec.describe Import::GitlabController do include ImportSpecHelper let(:user) { create(:user) } @@ -34,8 +34,17 @@ describe Import::GitlabController do describe "GET status" do before do - @repo = OpenStruct.new(path: 'vim', path_with_namespace: 'asd/vim') + @repo = OpenStruct.new(id: 1, path: 'vim', path_with_namespace: 'asd/vim', web_url: 'https://gitlab.com/asd/vim') assign_session_token + 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.path_with_namespace } + let(:provider_name) { 'gitlab' } + let(:client_repos_field) { :projects } end it "assigns variables" do |