summaryrefslogtreecommitdiff
path: root/spec/features/projects/import_export/import_file_spec.rb
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-07-20 16:09:43 +0200
committerJames Lopez <james@jameslopez.es>2016-07-20 16:09:43 +0200
commitf0603e4cb7cfc043239554857a1143943b50b22f (patch)
tree2658f71c340817d64fce237e1941cfeda8e48517 /spec/features/projects/import_export/import_file_spec.rb
parent4eb9045ddede6d4b23cb0f9dd9676873c5a21f8c (diff)
downloadgitlab-ce-f0603e4cb7cfc043239554857a1143943b50b22f.tar.gz
added spec, fixed wording
Diffstat (limited to 'spec/features/projects/import_export/import_file_spec.rb')
-rw-r--r--spec/features/projects/import_export/import_file_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/features/projects/import_export/import_file_spec.rb b/spec/features/projects/import_export/import_file_spec.rb
index bc3bf53fe9d..40809aa4aba 100644
--- a/spec/features/projects/import_export/import_file_spec.rb
+++ b/spec/features/projects/import_export/import_file_spec.rb
@@ -59,6 +59,19 @@ feature 'project import', feature: true, js: true do
end
end
+ scenario 'project with no name' do
+ project = create(:project, namespace_id: 2)
+
+ visit new_project_path
+
+ select2('2', from: '#project_namespace_id')
+ click_link 'GitLab export'
+
+ page.within('.flash-container') do
+ expect(page).to have_content('Please enter path and name')
+ end
+ end
+
def wiki_exists?
wiki = ProjectWiki.new(project)
File.exist?(wiki.repository.path_to_repo) && !wiki.repository.empty?