Commit 7db71b9476f2df6138b550566d0cc8763961a7c2
1 parent
58eca311
Exists in
master
and in
4 other branches
Fix project models specs
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
spec/models/project_spec.rb
... | ... | @@ -70,7 +70,7 @@ describe Project do |
70 | 70 | |
71 | 71 | it "should not allow new projects beyond user limits" do |
72 | 72 | project2 = build(:project) |
73 | - project2.stub(:creator).and_return(double(can_create_project?: false, projects_limit: 0)) | |
73 | + project2.stub(:creator).and_return(double(can_create_project?: false, projects_limit: 0).as_null_object) | |
74 | 74 | project2.should_not be_valid |
75 | 75 | project2.errors[:limit_reached].first.should match(/Your own projects limit is 0/) |
76 | 76 | end | ... | ... |