Commit d59f8abe authored by Marin Jankovski's avatar Marin Jankovski

Fix tests after change to regex validation message.

parent 42a1d808
......@@ -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
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment