summaryrefslogtreecommitdiff
path: root/spec/services
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2018-01-31 10:51:05 -0600
committerDouwe Maan <douwe@selenight.nl>2018-02-06 12:06:05 -0600
commit8d69436c901a3eee674e72c67d91de3994d30e0c (patch)
treec8071b0c0c78f2f711d51999793a2b66d9a9aea9 /spec/services
parent2d5f10b2a7f05b29ca5869b2d1acb53d5bcbf50b (diff)
downloadgitlab-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.rb2
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 }) }