Skip to content
Snippets Groups Projects
Commit 6d775dda authored by Marin Jankovski's avatar Marin Jankovski
Browse files

Fix tests after change to regex validation message.

parent 2ee1ec43
No related branches found
No related tags found
No related merge requests found
Loading
@@ -209,9 +209,8 @@ describe API::API, api: true do
Loading
@@ -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
   
Loading
Loading
Loading
@@ -141,8 +141,7 @@ describe API::API, api: true do
Loading
@@ -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
Loading
@@ -285,8 +284,7 @@ describe API::API, api: true do
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment