diff options
author | James Lopez <james@jameslopez.es> | 2016-07-20 16:09:43 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-07-20 16:09:43 +0200 |
commit | f0603e4cb7cfc043239554857a1143943b50b22f (patch) | |
tree | 2658f71c340817d64fce237e1941cfeda8e48517 /spec/features | |
parent | 4eb9045ddede6d4b23cb0f9dd9676873c5a21f8c (diff) | |
download | gitlab-ce-f0603e4cb7cfc043239554857a1143943b50b22f.tar.gz |
added spec, fixed wording
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/projects/import_export/import_file_spec.rb | 13 |
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? |