summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2015-12-16 16:29:31 -0200
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2015-12-16 16:34:03 -0200
commit9c266d49354e9f7f86c76b00fbe800912f475153 (patch)
treea7c5294321d441d7a9fb254453e74588642fee33 /features
parent76642d7a805e572ddd7608efa4f6f33de42fa1ce (diff)
downloadgitlab-ce-9c266d49354e9f7f86c76b00fbe800912f475153.tar.gz
Add more descriptive error message when create branch with invalid name
Diffstat (limited to 'features')
-rw-r--r--features/steps/project/commits/branches.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/features/steps/project/commits/branches.rb b/features/steps/project/commits/branches.rb
index 338f5e8d3ee..e9312e87637 100644
--- a/features/steps/project/commits/branches.rb
+++ b/features/steps/project/commits/branches.rb
@@ -61,7 +61,7 @@ class Spinach::Features::ProjectCommitsBranches < Spinach::FeatureSteps
end
step 'I should see new an error that branch is invalid' do
- expect(page).to have_content 'Branch name invalid'
+ expect(page).to have_content "Branch name can't contains space, '~', '^', ':', '?', '*', '[', '\', '..', '@{', and consecutive slashes, start with '/' or '.' or end in '/' or '.' or '.lock'"
end
step 'I should see new an error that ref is invalid' do