diff options
author | Douwe Maan <douwe@selenight.nl> | 2018-01-31 10:51:05 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2018-02-06 12:06:05 -0600 |
commit | 8d69436c901a3eee674e72c67d91de3994d30e0c (patch) | |
tree | c8071b0c0c78f2f711d51999793a2b66d9a9aea9 /spec/services | |
parent | 2d5f10b2a7f05b29ca5869b2d1acb53d5bcbf50b (diff) | |
download | gitlab-ce-8d69436c901a3eee674e72c67d91de3994d30e0c.tar.gz |
Validate user namespace before saving so that errors persist on modeldm-user-namespace-route-path-validation
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/projects/gitlab_projects_import_service_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/projects/gitlab_projects_import_service_spec.rb b/spec/services/projects/gitlab_projects_import_service_spec.rb index bb0e274c93e..6b8f9619bc4 100644 --- a/spec/services/projects/gitlab_projects_import_service_spec.rb +++ b/spec/services/projects/gitlab_projects_import_service_spec.rb @@ -1,7 +1,7 @@ require 'spec_helper' describe Projects::GitlabProjectsImportService do - set(:namespace) { build(:namespace) } + set(:namespace) { create(:namespace) } let(:file) { fixture_file_upload(Rails.root + 'spec/fixtures/doc_sample.txt', 'text/plain') } subject { described_class.new(namespace.owner, { namespace_id: namespace.id, path: path, file: file }) } |