Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
66835843
Commit
66835843
authored
Aug 21, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests after can_create_team was removed
parent
08be25eb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
4 deletions
+0
-4
spec/features/admin/admin_users_spec.rb
spec/features/admin/admin_users_spec.rb
+0
-1
spec/lib/auth_spec.rb
spec/lib/auth_spec.rb
+0
-1
spec/models/user_spec.rb
spec/models/user_spec.rb
+0
-2
No files found.
spec/features/admin/admin_users_spec.rb
View file @
66835843
...
@@ -35,7 +35,6 @@ describe "Admin::Users" do
...
@@ -35,7 +35,6 @@ describe "Admin::Users" do
user
=
User
.
last
user
=
User
.
last
user
.
projects_limit
.
should
==
Gitlab
.
config
.
gitlab
.
default_projects_limit
user
.
projects_limit
.
should
==
Gitlab
.
config
.
gitlab
.
default_projects_limit
user
.
can_create_group
.
should
==
Gitlab
.
config
.
gitlab
.
default_can_create_group
user
.
can_create_group
.
should
==
Gitlab
.
config
.
gitlab
.
default_can_create_group
user
.
can_create_team
.
should
==
Gitlab
.
config
.
gitlab
.
default_can_create_team
end
end
it
"should create user with valid data"
do
it
"should create user with valid data"
do
...
...
spec/lib/auth_spec.rb
View file @
66835843
...
@@ -99,7 +99,6 @@ describe Gitlab::Auth do
...
@@ -99,7 +99,6 @@ describe Gitlab::Auth do
user
.
should
be_valid
user
.
should
be_valid
user
.
projects_limit
.
should
==
Gitlab
.
config
.
gitlab
.
default_projects_limit
user
.
projects_limit
.
should
==
Gitlab
.
config
.
gitlab
.
default_projects_limit
user
.
can_create_group
.
should
==
Gitlab
.
config
.
gitlab
.
default_can_create_group
user
.
can_create_group
.
should
==
Gitlab
.
config
.
gitlab
.
default_can_create_group
user
.
can_create_team
.
should
==
Gitlab
.
config
.
gitlab
.
default_can_create_team
end
end
end
end
end
end
spec/models/user_spec.rb
View file @
66835843
...
@@ -198,7 +198,6 @@ describe User do
...
@@ -198,7 +198,6 @@ describe User do
it
"should not apply defaults to user"
do
it
"should not apply defaults to user"
do
user
.
projects_limit
.
should
==
10
user
.
projects_limit
.
should
==
10
user
.
can_create_group
.
should
==
true
user
.
can_create_group
.
should
==
true
user
.
can_create_team
.
should
==
true
end
end
end
end
...
@@ -207,7 +206,6 @@ describe User do
...
@@ -207,7 +206,6 @@ describe User do
it
"should apply defaults to user"
do
it
"should apply defaults to user"
do
user
.
projects_limit
.
should
==
42
user
.
projects_limit
.
should
==
42
user
.
can_create_group
.
should
==
false
user
.
can_create_group
.
should
==
false
user
.
can_create_team
.
should
==
false
end
end
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment