Skip to content
Snippets Groups Projects
Verified Commit 7db71b94 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix project models specs

parent 58eca311
No related branches found
No related tags found
1 merge request!1Fix Links To Gitlab Cloud
Loading
Loading
@@ -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
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