diff options
author | Daniel Wyatt <daniel.wyatt@ribose.com> | 2019-04-08 17:12:39 +0300 |
---|---|---|
committer | Daniel Wyatt <daniel.wyatt@ribose.com> | 2019-04-08 18:39:57 +0300 |
commit | 26fdcf7b6103aa47943271a5f6358d9779d5a9b3 (patch) | |
tree | f31ef311540088f806818da38b0704e153425a25 /spec/lib/gitlab/legacy_github_import | |
parent | 34f68b3e35bbfa35cb831c16643eadb4dda70039 (diff) |
Fix GitHub project import visibility
Diffstat (limited to 'spec/lib/gitlab/legacy_github_import')
-rw-r--r-- | spec/lib/gitlab/legacy_github_import/project_creator_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/legacy_github_import/project_creator_spec.rb b/spec/lib/gitlab/legacy_github_import/project_creator_spec.rb index 3d4240fa4ba..8c56622e0ba 100644 --- a/spec/lib/gitlab/legacy_github_import/project_creator_spec.rb +++ b/spec/lib/gitlab/legacy_github_import/project_creator_spec.rb @@ -47,12 +47,12 @@ describe Gitlab::LegacyGithubImport::ProjectCreator do end context 'when GitHub project is public' do - it 'sets project visibility to public' do + it 'sets project visibility to namespace visibility level' do repo.private = false project = service.execute - expect(project.visibility_level).to eq(Gitlab::VisibilityLevel::PUBLIC) + expect(project.visibility_level).to eq(namespace.visibility_level) end end |