Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-04-15 17:58:43 +0300
committerDouwe Maan <douwe@gitlab.com>2015-04-15 17:58:43 +0300
commit80097606f59c52ab962a3bec1e67f67d1a3cb6c7 (patch)
tree3de7a45fc5be22e061d85ed888f54dde74099d82 /spec/lib/gitlab/gitlab_import
parent9193b94ecec58c7c386f9c1b5a6f06f01b1ef42a (diff)
Make sure user has access to namespace in import tests.
Diffstat (limited to 'spec/lib/gitlab/gitlab_import')
-rw-r--r--spec/lib/gitlab/gitlab_import/project_creator_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/lib/gitlab/gitlab_import/project_creator_spec.rb b/spec/lib/gitlab/gitlab_import/project_creator_spec.rb
index 4c0d64ed138..3cefe4ea8e2 100644
--- a/spec/lib/gitlab/gitlab_import/project_creator_spec.rb
+++ b/spec/lib/gitlab/gitlab_import/project_creator_spec.rb
@@ -10,7 +10,11 @@ describe Gitlab::GitlabImport::ProjectCreator do
http_url_to_repo: "https://gitlab.com/asd/vim.git",
owner: {name: "john"}}.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)