BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
6d775dda
Commit
6d775dda
authored
Nov 05, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests after change to regex validation message.
parent
2ee1ec43
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
projects_spec.rb
spec/requests/api/projects_spec.rb
+2
-3
users_spec.rb
spec/requests/api/users_spec.rb
+2
-4
No files found.
spec/requests/api/projects_spec.rb
View file @
6d775dda
...
...
@@ -209,9 +209,8 @@ describe API::API, api: true do
json_response
[
'message'
][
'path'
].
should
==
[
'can\'t be blank'
,
'is too short (minimum is 0 characters)'
,
'can contain only letters, digits, \'_\', \'-\' and \'.\'. It must '
\
'start with letter, digit or \'_\', optionally preceeded by \'.\'. '
\
'It must not end in \'.git\'.'
'can contain only letters, digits, \'_\', \'-\' and \'.\'. '
\
'Cannot start with \'-\' or end in \'.git\''
]
end
...
...
spec/requests/api/users_spec.rb
View file @
6d775dda
...
...
@@ -141,8 +141,7 @@ describe API::API, api: true do
should
==
[
'must be greater than or equal to 0'
]
json_response
[
'message'
][
'username'
].
should
==
[
'can contain only letters, digits, '
\
'\'_\', \'-\' and \'.\'. It must start with letter, digit or '
\
'\'_\', optionally preceeded by \'.\'. It must not end in \'.git\'.'
]
'\'_\', \'-\' and \'.\'. Cannot start with \'-\' or end in \'.git\''
]
end
it
"shouldn't available for non admin users"
do
...
...
@@ -285,8 +284,7 @@ describe API::API, api: true do
should
==
[
'must be greater than or equal to 0'
]
json_response
[
'message'
][
'username'
].
should
==
[
'can contain only letters, digits, '
\
'\'_\', \'-\' and \'.\'. It must start with letter, digit or '
\
'\'_\', optionally preceeded by \'.\'. It must not end in \'.git\'.'
]
'\'_\', \'-\' and \'.\'. Cannot start with \'-\' or end in \'.git\''
]
end
context
"with existing user"
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment