summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-27 00:08:09 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-27 00:08:09 +0000
commit6348b76e4b4dd4e398915c3150c1d02aafa3f13b (patch)
treec8c53d4adac92d4576d73d33ebeeaa62a2626b12 /spec/features
parent03a70b84edfb86bc27f9234e1f1d157d3a33c555 (diff)
downloadgitlab-ce-6348b76e4b4dd4e398915c3150c1d02aafa3f13b.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/snippets/user_creates_snippet_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/features/snippets/user_creates_snippet_spec.rb b/spec/features/snippets/user_creates_snippet_spec.rb
index f200355c6d2..93da976dee0 100644
--- a/spec/features/snippets/user_creates_snippet_spec.rb
+++ b/spec/features/snippets/user_creates_snippet_spec.rb
@@ -99,6 +99,11 @@ shared_examples_for 'snippet editor' do
it 'renders new page' do
expect(page).to have_content('New Snippet')
end
+
+ it 'has the correct action path' do
+ action = find('form.snippet-form')['action']
+ expect(action).to match(%r{/snippets\z})
+ end
end
it 'validation fails for the first time' do