Dmitriy Zaporozhets
58601ebdab
Fix tests after user password length was changed
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2013-11-25 20:07:55 +02:00
Dmitriy Zaporozhets
201d489780
Annotate
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2013-11-13 14:10:03 +02:00
Dmitriy Zaporozhets
b813a4888a
Remove User#namespaces method from code
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2013-11-05 17:15:43 +02:00
Dmitriy Zaporozhets
0a2a34a4d1
Ignore owner_id for Group in tests
2013-09-26 14:52:17 +03:00
Izaak Alpert
8a8123a3d4
Update for readability
...
fixed a test a broke in the configurable theme PR
Change-Id: Id894506941bc01ab0d259d48ca7ff9b80bb2c57e
2013-09-22 20:56:17 -04:00
Izaak Alpert
51e6095dd1
Make users theme configurable
...
GITLAB-1262
Change-Id: I690cb8ea294df53ebe8405a519c23c501af2c21a
Conflicts:
app/models/user.rb
config/initializers/1_settings.rb
spec/models/user_spec.rb
2013-09-22 01:05:14 -04:00
Dmitriy Zaporozhets
e0e88cddd8
Fix tests
2013-09-14 22:01:31 +03:00
Izaak Alpert
5dae40f579
Update to only provide one way to get a default user
...
-calling build_user will now apply defaults and only override them if as: :admin is set
Change-Id: Id1d938c0967752ecc14370af54f2d88128d18c44
2013-09-11 14:04:15 -04:00
Stephen Holdaway
e19526c2ac
Fix several_namespaces? to work with multiple ownership of groups
2013-09-12 00:10:45 +12:00
Izaak Alpert
7a56075efa
Some of the requested updates, rebase on master
...
Change-Id: I305266fe9acbbb5136adeeb52e7e4e1d6629a30a
2013-09-09 12:04:38 -04:00
Dmitriy Zaporozhets
668358439e
Fix tests after can_create_team was removed
2013-08-21 15:07:09 +03:00
Dmitriy Zaporozhets
8dd37afe34
Reannotate
2013-08-21 12:34:02 +03:00
Dmitriy Zaporozhets
7b87fcbad4
Fix broken factory
2013-06-22 16:46:57 +03:00
Dmitriy Zaporozhets
0bc714c271
Remove form for adding user to several projects from admin area.
...
Remove unnecessary projects order on User#show
2013-06-22 13:41:08 +03:00
Dmitriy Zaporozhets
8c918e583a
Remove tests for missing method
2013-06-21 21:50:34 +03:00
Dmitriy Zaporozhets
6e35aceff2
Annotated
2013-06-19 15:40:33 +03:00
Dmitriy Zaporozhets
1b3b90dbfd
Remove teams specs
2013-06-18 22:06:20 +03:00
Dmitriy Zaporozhets
470f9064fa
Merge pull request #4206 from babatakao/authorize_all_teams_to_admin
...
Authorize all teams to admin: fix 500 error on showing team page.
2013-06-06 07:14:50 -07:00
babatakao
86a262de1a
Authorize all teams to admin: fix 500 error on showing team page.
...
500 error was occured in the following steps:
1. user1 creates new team "team1".
2. Assign team1 to project1.
3. Sign in as admin. This admin is not a member of team1.
4. Open project1 team setting page (/project1/team).
5. Click "team1" link in "Assigned teams" area.
6. 500 error.
Fixed this issue.
2013-06-05 15:41:33 +09:00
babatakao and baba
37a90d5f76
Selectable deploy keys contain master projects
2013-06-05 02:59:30 +09:00
Dmitriy Zaporozhets
bcc4e4dc7e
Merge branch 'gist' of https://github.com/Andrew8xx8/gitlabhq into Andrew8xx8-gist
...
Conflicts:
Gemfile.lock
app/models/ability.rb
app/models/project.rb
app/views/snippets/_form.html.haml
db/schema.rb
features/steps/shared/paths.rb
spec/factories.rb
spec/models/project_spec.rb
2013-06-04 18:36:22 +03:00
Dmitry Medvinsky
22279bc558
Add settings for user permission defaults
...
“Can create groups” and “Can create teams” had hardcoded defaults to
`true`. Sometimes it is desirable to prohibit these for newly created
users by default.
2013-05-16 18:02:22 +04:00
Dmitriy Zaporozhets
615e496846
change user_spec to pass postgres
2013-04-15 16:30:26 +03:00
Dmitriy Zaporozhets
5f14a6bcf8
annotated
2013-03-27 18:26:37 +02:00
Andrew8xx8
9e2525cbd0
Association form user to snippets added
2013-03-24 23:09:59 +04:00
Dmitriy Zaporozhets
21b1fee92c
reannotated
2013-03-15 15:16:02 +02:00
Andrew8xx8
0d9a6fe7b1
User's blocked field refactored to use state machine
2013-03-04 18:52:30 +04:00
Dmitriy Zaporozhets
9c252a60c1
remove tests for unexisting methods
2013-02-26 11:17:02 +02:00
Dmitriy Zaporozhets
193a5624b2
add path and path_with_namespace to api project entity
2013-01-31 09:11:35 +02:00
Dmitriy Zaporozhets
3ce79e0658
fix spec
2013-01-25 10:10:12 +02:00
Dmitriy Zaporozhets
ce84e3f440
Fixed tests. added test for gitlab_ci_service model
2013-01-03 09:37:13 +02:00
Dmitriy Zaporozhets
40a956eb68
Few more fixes after removing roles
2013-01-03 00:01:08 +02:00
Dmitriy Zaporozhets
cac7723451
Get rid of roles
2013-01-02 23:35:11 +02:00
Dmitriy Zaporozhets
00a1f5bc2c
Project has now correct owner and creator. Increased test coverage
2013-01-02 19:00:00 +02:00
Dmitriy Zaporozhets
592412992d
Account role spec
2012-12-16 18:27:16 +02:00
Dmitriy Zaporozhets
b01f8b63c2
added NamespacedProject role. Extended project info displayed for admin. Fixed project limit
2012-12-14 08:14:05 +03:00
Dmitriy Zaporozhets
47234ab367
Validate username. Gitlab::Regex added
2012-11-28 06:14:05 +03:00
Dmitriy Zaporozhets
c31d48dd25
Allow project creation in scope of group for non-admin but group owners
2012-11-25 11:57:01 +02:00
Dmitriy Zaporozhets
65c470e843
Reannotated
2012-11-24 22:16:51 +02:00
Dmitriy Zaporozhets
2b683b0d0b
Ability to create project with namespace
2012-11-23 07:11:09 +03:00
Dmitriy Zaporozhets
95c23b2f97
Annotated. schema updated
2012-11-19 21:24:05 +03:00
Vincent Bonmalais
80fb38de7a
Remove backward compatibility of factories.
2012-11-13 22:27:45 +11:00
Dmitriy Zaporozhets
41e53eb980
Annotated
2012-10-09 11:14:17 +03:00
Nihad Abbasov
83efcabc82
set activerecord whitelist_attributes to true
2012-09-26 11:18:35 -07:00
Marin Jankovski
5928388b1c
Protect users projects_limit from mass assignment.
2012-09-26 13:20:44 +02:00
Robert Speicher
d29827433d
Update User#identifier to conform to Gitolite 2.x's user pattern
...
Also modifies the specs a bit because I can't help myself.
Closes #480
2012-09-04 00:20:17 -04:00
Robert Speicher
97423a0bed
Add more coverage for model validations and associations
2012-08-29 11:36:02 -04:00
Robert Speicher
9e7d77cece
Remove annotations from specs
2012-08-29 10:44:34 -04:00
Robert Speicher
77d06454ed
Simple model spec changes made possible by new factories
2012-08-28 21:22:49 -04:00
Robert Speicher
7754189187
Fully embrace Ruby 1.9 hash syntax
...
Didn't bother with files in db/, config/, or features/
2012-08-10 18:25:15 -04:00