Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
d59f8abe
Commit
d59f8abe
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
42a1d808
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
spec/requests/api/projects_spec.rb
spec/requests/api/projects_spec.rb
+2
-3
spec/requests/api/users_spec.rb
spec/requests/api/users_spec.rb
+2
-4
No files found.
spec/requests/api/projects_spec.rb
View file @
d59f8abe
...
@@ -209,9 +209,8 @@ describe API::API, api: true do
...
@@ -209,9 +209,8 @@ describe API::API, api: true do
json_response
[
'message'
][
'path'
].
should
==
[
json_response
[
'message'
][
'path'
].
should
==
[
'can\'t be blank'
,
'can\'t be blank'
,
'is too short (minimum is 0 characters)'
,
'is too short (minimum is 0 characters)'
,
'can contain only letters, digits, \'_\', \'-\' and \'.\'. It must '
\
'can contain only letters, digits, \'_\', \'-\' and \'.\'. '
\
'start with letter, digit or \'_\', optionally preceeded by \'.\'. '
\
'Cannot start with \'-\' or end in \'.git\''
'It must not end in \'.git\'.'
]
]
end
end
...
...
spec/requests/api/users_spec.rb
View file @
d59f8abe
...
@@ -141,8 +141,7 @@ describe API::API, api: true do
...
@@ -141,8 +141,7 @@ describe API::API, api: true do
should
==
[
'must be greater than or equal to 0'
]
should
==
[
'must be greater than or equal to 0'
]
json_response
[
'message'
][
'username'
].
json_response
[
'message'
][
'username'
].
should
==
[
'can contain only letters, digits, '
\
should
==
[
'can contain only letters, digits, '
\
'\'_\', \'-\' and \'.\'. It must start with letter, digit or '
\
'\'_\', \'-\' and \'.\'. Cannot start with \'-\' or end in \'.git\''
]
'\'_\', optionally preceeded by \'.\'. It must not end in \'.git\'.'
]
end
end
it
"shouldn't available for non admin users"
do
it
"shouldn't available for non admin users"
do
...
@@ -285,8 +284,7 @@ describe API::API, api: true do
...
@@ -285,8 +284,7 @@ describe API::API, api: true do
should
==
[
'must be greater than or equal to 0'
]
should
==
[
'must be greater than or equal to 0'
]
json_response
[
'message'
][
'username'
].
json_response
[
'message'
][
'username'
].
should
==
[
'can contain only letters, digits, '
\
should
==
[
'can contain only letters, digits, '
\
'\'_\', \'-\' and \'.\'. It must start with letter, digit or '
\
'\'_\', \'-\' and \'.\'. Cannot start with \'-\' or end in \'.git\''
]
'\'_\', optionally preceeded by \'.\'. It must not end in \'.git\'.'
]
end
end
context
"with existing user"
do
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