diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-04-15 16:58:43 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-04-15 16:58:43 +0200 |
commit | 80097606f59c52ab962a3bec1e67f67d1a3cb6c7 (patch) | |
tree | 3de7a45fc5be22e061d85ed888f54dde74099d82 /spec/lib/gitlab/bitbucket_import | |
parent | 9193b94ecec58c7c386f9c1b5a6f06f01b1ef42a (diff) | |
download | gitlab-ce-80097606f59c52ab962a3bec1e67f67d1a3cb6c7.tar.gz |
Make sure user has access to namespace in import tests.
Diffstat (limited to 'spec/lib/gitlab/bitbucket_import')
-rw-r--r-- | spec/lib/gitlab/bitbucket_import/project_creator_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/lib/gitlab/bitbucket_import/project_creator_spec.rb b/spec/lib/gitlab/bitbucket_import/project_creator_spec.rb index f5523105848..0ec6a43f681 100644 --- a/spec/lib/gitlab/bitbucket_import/project_creator_spec.rb +++ b/spec/lib/gitlab/bitbucket_import/project_creator_spec.rb @@ -8,8 +8,12 @@ describe Gitlab::BitbucketImport::ProjectCreator do is_private: true, owner: "asd"}.with_indifferent_access } - let(:namespace){ create(:namespace) } + let(:namespace){ create(:group, owner: user) } + before do + namespace.add_owner(user) + end + it 'creates project' do allow_any_instance_of(Project).to receive(:add_import_job) |