diff options
author | blackst0ne <blackst0ne.ru@gmail.com> | 2017-01-15 19:48:35 +1100 |
---|---|---|
committer | blackst0ne <blackst0ne.ru@gmail.com> | 2017-01-15 19:48:35 +1100 |
commit | ad977e8bb257db6ddfae022795a94a4ea95f9be3 (patch) | |
tree | 9f873880cd205bfc7c2bdd691141a8b966132f5b /spec/features/snippets | |
parent | ee39cbfc0e1bf75cd014cbff9420f081355dc3f8 (diff) | |
download | gitlab-ce-ad977e8bb257db6ddfae022795a94a4ea95f9be3.tar.gz |
Allow to use + symbol in filenames
Diffstat (limited to 'spec/features/snippets')
-rw-r--r-- | spec/features/snippets/create_snippet_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/features/snippets/create_snippet_spec.rb b/spec/features/snippets/create_snippet_spec.rb index cb95e7828db..5470276bf06 100644 --- a/spec/features/snippets/create_snippet_spec.rb +++ b/spec/features/snippets/create_snippet_spec.rb @@ -17,4 +17,18 @@ feature 'Create Snippet', feature: true do expect(page).to have_content('My Snippet Title') expect(page).to have_content('Hello World!') end + + scenario 'Authenticated user creates a snippet with + in filename' do + fill_in 'personal_snippet_title', with: 'My Snippet Title' + page.within('.file-editor') do + find(:xpath, "//input[@id='personal_snippet_file_name']").set 'snippet+file+name' + find(:xpath, "//input[@id='personal_snippet_content']").set 'Hello World!' + end + + click_button 'Create snippet' + + expect(page).to have_content('My Snippet Title') + expect(page).to have_content('snippet+file+name') + expect(page).to have_content('Hello World!') + end end |