Commit 668358439e5f4c92c96fc1ae72b0cf06df8dbd90

Authored by Dmitriy Zaporozhets
1 parent 08be25eb

Fix tests after can_create_team was removed

spec/features/admin/admin_users_spec.rb
@@ -35,7 +35,6 @@ describe "Admin::Users" do @@ -35,7 +35,6 @@ describe "Admin::Users" do
35 user = User.last 35 user = User.last
36 user.projects_limit.should == Gitlab.config.gitlab.default_projects_limit 36 user.projects_limit.should == Gitlab.config.gitlab.default_projects_limit
37 user.can_create_group.should == Gitlab.config.gitlab.default_can_create_group 37 user.can_create_group.should == Gitlab.config.gitlab.default_can_create_group
38 - user.can_create_team.should == Gitlab.config.gitlab.default_can_create_team  
39 end 38 end
40 39
41 it "should create user with valid data" do 40 it "should create user with valid data" do
spec/lib/auth_spec.rb
@@ -99,7 +99,6 @@ describe Gitlab::Auth do @@ -99,7 +99,6 @@ describe Gitlab::Auth do
99 user.should be_valid 99 user.should be_valid
100 user.projects_limit.should == Gitlab.config.gitlab.default_projects_limit 100 user.projects_limit.should == Gitlab.config.gitlab.default_projects_limit
101 user.can_create_group.should == Gitlab.config.gitlab.default_can_create_group 101 user.can_create_group.should == Gitlab.config.gitlab.default_can_create_group
102 - user.can_create_team.should == Gitlab.config.gitlab.default_can_create_team  
103 end 102 end
104 end 103 end
105 end 104 end
spec/models/user_spec.rb
@@ -198,7 +198,6 @@ describe User do @@ -198,7 +198,6 @@ describe User do
198 it "should not apply defaults to user" do 198 it "should not apply defaults to user" do
199 user.projects_limit.should == 10 199 user.projects_limit.should == 10
200 user.can_create_group.should == true 200 user.can_create_group.should == true
201 - user.can_create_team.should == true  
202 end 201 end
203 end 202 end
204 203
@@ -207,7 +206,6 @@ describe User do @@ -207,7 +206,6 @@ describe User do
207 it "should apply defaults to user" do 206 it "should apply defaults to user" do
208 user.projects_limit.should == 42 207 user.projects_limit.should == 42
209 user.can_create_group.should == false 208 user.can_create_group.should == false
210 - user.can_create_team.should == false  
211 end 209 end
212 end 210 end
213 end 211 end