Fix project models specs

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2013-12-10 13:41:38 +02:00
parent 58eca3118a
commit 7db71b9476
No known key found for this signature in database
GPG key ID: 627C5F589F467F17

View file

@ -70,7 +70,7 @@ describe Project do
it "should not allow new projects beyond user limits" do
project2 = build(:project)
project2.stub(:creator).and_return(double(can_create_project?: false, projects_limit: 0))
project2.stub(:creator).and_return(double(can_create_project?: false, projects_limit: 0).as_null_object)
project2.should_not be_valid
project2.errors[:limit_reached].first.should match(/Your own projects limit is 0/)
end