API: fixes test if project limit is reached
Fixes a test that checks if the project limit is reached.
This commit is contained in:
parent
eefb27f5ae
commit
512d826cc3
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ describe Project do
|
||||||
it "should not allow new projects beyond user limits" 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.stub(:creator).and_return(double(can_create_project?: false, projects_limit: 1))
|
||||||
project.should_not be_valid
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue