diff options
author | Douwe Maan <douwe@gitlab.com> | 2017-09-07 16:15:32 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2017-09-07 16:15:32 +0000 |
commit | 523a1c69ab6c51969f2613c4042d91318f841081 (patch) | |
tree | a30cd8e62725a818a9d0e4bfa6405fe194fdc3d6 /spec/features/projects/import_export | |
parent | ec304cb9297ae75a7f46d6945d537c5d1cbd2fdf (diff) | |
parent | cfd475a45ee2655fa0148b0b561f95b44fe8641b (diff) | |
download | gitlab-ce-523a1c69ab6c51969f2613c4042d91318f841081.tar.gz |
Merge branch '23079-remove-default-scope-in-sortable' into 'master'
Removes default scope from sortable
Closes #23079
See merge request !13558
Diffstat (limited to 'spec/features/projects/import_export')
-rw-r--r-- | spec/features/projects/import_export/import_file_spec.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/features/projects/import_export/import_file_spec.rb b/spec/features/projects/import_export/import_file_spec.rb index ad2db1a34f4..e5c7781a096 100644 --- a/spec/features/projects/import_export/import_file_spec.rb +++ b/spec/features/projects/import_export/import_file_spec.rb @@ -18,7 +18,7 @@ feature 'Import/Export - project import integration test', js: true do context 'when selecting the namespace' do let(:user) { create(:admin) } - let!(:namespace) { create(:namespace, name: 'asd', owner: user) } + let!(:namespace) { user.namespace } let(:project_path) { 'test-project-path' + SecureRandom.hex } context 'prefilled the path' do @@ -66,12 +66,11 @@ feature 'Import/Export - project import integration test', js: true do end scenario 'invalid project' do - namespace = create(:namespace, name: 'asdf', owner: user) - project = create(:project, namespace: namespace) + project = create(:project, namespace: user.namespace) visit new_project_path - select2(namespace.id, from: '#project_namespace_id') + select2(user.namespace.id, from: '#project_namespace_id') fill_in :project_path, with: project.name, visible: true click_link 'GitLab export' attach_file('file', file) |