Commit 512d826cc3e89bb577f485d4767d91185f3f0556
1 parent
eefb27f5
Exists in
master
and in
4 other branches
API: fixes test if project limit is reached
Fixes a test that checks if the project limit is reached.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
spec/models/project_spec.rb
@@ -64,7 +64,7 @@ describe Project do | @@ -64,7 +64,7 @@ describe Project do | ||
64 | it "should not allow new projects beyond user limits" do | 64 | it "should not allow new projects beyond user limits" do |
65 | project.stub(:creator).and_return(double(can_create_project?: false, projects_limit: 1)) | 65 | project.stub(:creator).and_return(double(can_create_project?: false, projects_limit: 1)) |
66 | project.should_not be_valid | 66 | project.should_not be_valid |
67 | - project.errors[:base].first.should match(/Your own projects limit is 1/) | 67 | + project.errors[:limit_reached].first.should match(/Your own projects limit is 1/) |
68 | end | 68 | end |
69 | end | 69 | end |
70 | 70 |