Skip to content
Snippets Groups Projects
Commit 512d826c authored by Sebastian Ziebell's avatar Sebastian Ziebell
Browse files

API: fixes test if project limit is reached

Fixes a test that checks if the project limit is reached.
parent eefb27f5
No related branches found
No related tags found
1 merge request!2835Fix API return codes
Loading
Loading
@@ -64,7 +64,7 @@ describe Project do
it "should not allow new projects beyond user limits" do
project.stub(:creator).and_return(double(can_create_project?: false, projects_limit: 1))
project.should_not be_valid
project.errors[:base].first.should match(/Your own projects limit is 1/)
project.errors[:limit_reached].first.should match(/Your own projects limit is 1/)
end
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment