Dmitriy Zaporozhets
342d553709
Rename abilities to correspond contoller/model action names
...
write_ was renamed to create_
modify_ was renamed to update_
So now in update action we have next code
def create
can?(current_user, :create_issue, @issue)
end
def update
can?(current_user, :update_issue, @issue)
end
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-26 15:55:56 +02:00
Dmitriy Zaporozhets
b9fa82daee
Update tests and use js-issuable class for context form
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-26 15:05:30 +02:00
Dmitriy Zaporozhets
9c0229732a
Merge branch 'rs-random-placeholder-tip' into 'master'
...
Show a random Markdown tip in the textarea placeholder
cc @darby
See merge request !879
2015-06-25 08:59:54 +00:00
Robert Speicher
09f2bec64c
Prefix random Markdown tips with "Tip:"
2015-06-24 18:43:57 -04:00
Robert Speicher
d2de219f6c
Merge branch 'add-2fa-status-to-admin-api' into 'master'
...
Add 2FA status to user admin API
This MR adds the `two_factor_enabled` field to the admin's API to indicate whether a given user has enabled 2FA.
See merge request !881
2015-06-24 19:24:20 +00:00
Stan Hu
6548e9b48c
Add 2FA status to user admin API
...
Closes https://github.com/gitlabhq/gitlabhq/issues/9391
2015-06-23 22:41:59 -07:00
Robert Speicher
82a671704d
Show a random Markdown tip in the textarea placeholder
2015-06-23 21:00:10 -04:00
Robert Speicher
e9b65a3e05
Only look up Commit authors/committers by email
...
- Removes looking up authors/committers by name
- Renames `User.find_for_commit` to `User.find_by_any_email`
2015-06-23 18:07:15 -04:00
Stan Hu
e80d7a804f
Fix error when deleting a user who has projects
...
Closes #1856
Closes https://github.com/gitlabhq/gitlabhq/issues/9394
2015-06-23 04:39:49 -07:00
Dmitriy Zaporozhets
883438970d
Merge branch 'rubocop-for-tests' into 'master'
...
Enable rubocop for tests too
cc @DouweM @rspeicher
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
See merge request !862
2015-06-23 10:36:36 +00:00
Dmitriy Zaporozhets
f189c36d8d
Merge branch 'rs-dev-issue-2414' into 'master'
...
Allow Admin to filter users by 2FA status
> 
Closes internal https://dev.gitlab.org/gitlab/gitlabhq/issues/2414
See merge request !852
2015-06-23 08:48:22 +00:00
Dmitriy Zaporozhets
779646ef38
Fix rubocop issues after merge of recent master
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-23 10:46:29 +02:00
Dmitriy Zaporozhets
f40b99d02e
Merge branch 'master' into rubocop-for-tests
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
spec/features/issues_spec.rb
spec/models/forked_project_link_spec.rb
spec/models/hooks/service_hook_spec.rb
spec/models/hooks/web_hook_spec.rb
spec/models/project_services/hipchat_service_spec.rb
spec/requests/api/project_members_spec.rb
spec/requests/api/projects_spec.rb
spec/requests/api/system_hooks_spec.rb
spec/services/archive_repository_service_spec.rb
spec/support/matchers.rb
spec/tasks/gitlab/backup_rake_spec.rb
2015-06-23 10:44:03 +02:00
Dmitriy Zaporozhets
4aa1fdd347
Merge branch 'fix-project-icon-links' into 'master'
...
Fix avatar tests to use banana_sample.gif
Fixes tests that were broken in f5e0e5c0 due to the purge of `gitlab_logo.png`.
See merge request !866
2015-06-23 08:32:21 +00:00
Stan Hu
9369adb93d
Fix Style/NonNilCheck cop violations
2015-06-22 22:26:41 -07:00
Stan Hu
52aa21b12d
Fix Style/IndentationWidth cop violations
2015-06-22 22:25:40 -07:00
Stan Hu
3446bea719
Fix Style/CaseIndentation cop violations
2015-06-22 22:25:21 -07:00
Stan Hu
359ed48638
Fix Style/AlignHash cop violations
2015-06-22 22:24:39 -07:00
Robert Speicher
dcfce8b198
Use alias_attribute to define User#two_factor_enabled
2015-06-22 21:14:07 -04:00
Robert Speicher
871bb2f143
Fix bad multi-line split from previous commit
2015-06-22 16:06:04 -04:00
Robert Speicher
15a05be70d
Fix Style/Blocks cop violations
2015-06-22 16:00:54 -04:00
Stan Hu
fe94254571
Fix avatar tests to use banana_sample.gif since SVG is not supported
2015-06-22 12:04:07 -07:00
Robert Speicher
8832839291
Fix Style/CommentIndentation cop violation
2015-06-22 14:56:48 -04:00
Robert Speicher
0bb320cfda
Fix Style/HashSyntax violations
2015-06-22 14:54:33 -04:00
Robert Speicher
4dbf118a16
Fix Style/Not cop violations
2015-06-22 14:52:41 -04:00
Robert Speicher
0716a559b5
Fix Style/AsciiComments cop violation
2015-06-22 14:43:51 -04:00
Robert Speicher
94eff65569
Fix Style/SpaceInsideHashLiteralBraces cop violations
...
These fixes were performed automatically by Rubocop's `-a` flag.
2015-06-22 14:41:00 -04:00
Robert Speicher
56246b70fb
Fix Style/TrailingBlankLines cop violations
2015-06-22 14:38:33 -04:00
Robert Speicher
649c9969ba
Fix Style/IndentationConsistency cop violations
2015-06-22 14:33:01 -04:00
Dmitriy Zaporozhets
cc9b5c49d1
Merge branch 'revert-mr-state-names'
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
features/steps/project/merge_requests.rb
2015-06-22 15:43:09 +02:00
Dmitriy Zaporozhets
595b3323a8
Merge branch 'rs-rspec3' into 'master'
...
RSpec3
Upgrades rspec to 3.3.0, we're now up-to-date! 🎉
See merge request !831
2015-06-22 13:15:27 +00:00
Dmitriy Zaporozhets
967214b2ec
Merge requests API returns closed for closed and merged for merged.
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-22 15:11:53 +02:00
Dmitriy Zaporozhets
7b9b3c5aab
Fix part of api specs for rubocop
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-22 15:05:19 +02:00
Dmitriy Zaporozhets
cf259cdb43
Remove unnecessary whitespace between let and (
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-22 14:39:07 +02:00
Dmitriy Zaporozhets
6c4d48b8b9
Merge branch 'rs-remove-link-to-override'
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
spec/helpers/application_helper_spec.rb
2015-06-22 12:26:41 +02:00
Robert Speicher and Dmitriy Zaporozhets
e4e01dbf41
Fix Gitlab::OAuth::User spec
2015-06-22 12:13:49 +02:00
Robert Speicher and Dmitriy Zaporozhets
1dd42da802
Add sleep call before yield in allowing_for_delay
...
This is to give pending AJAX requests time to complete before we
navigate away, for example.
2015-06-22 12:13:49 +02:00
Robert Speicher and Dmitriy Zaporozhets
bf71d53f63
Change to_not calls to not_to
...
Both work, but now we're consistent across the entire app.
2015-06-22 12:13:49 +02:00
Robert Speicher and Dmitriy Zaporozhets
0f627f1c60
Fix raise_error without an argument deprecation warnings
2015-06-22 12:13:47 +02:00
Robert Speicher and Dmitriy Zaporozhets
8b1f1ab32e
Remove junk from db_cleaner spec support file
2015-06-22 12:13:47 +02:00
Robert Speicher and Dmitriy Zaporozhets
da135119aa
Move CapybaraHelpers to its own support file
...
In case we end up wanting to use it in Spinach as well.
2015-06-22 12:13:47 +02:00
Robert Speicher and Dmitriy Zaporozhets
7460c39f60
Fix GitPushService spec
2015-06-22 12:13:47 +02:00
Robert Speicher and Dmitriy Zaporozhets
2120e2dd95
Replace remaining references to Note.create_cross_reference_note
2015-06-22 12:13:46 +02:00
Robert Speicher and Dmitriy Zaporozhets
213d1a4768
Use to_reference for issue and merge request mentionable specs
2015-06-22 12:13:46 +02:00
Robert Speicher and Dmitriy Zaporozhets
1f7490a23f
Update spec/features/security specs
2015-06-22 12:13:46 +02:00
Robert Speicher and Dmitriy Zaporozhets
20a871cc21
Update email_spec gem
...
This fixes spec/mailers/notify_spec
Also only require email_spec in the one place it's used
2015-06-22 12:13:46 +02:00
Robert Speicher and Dmitriy Zaporozhets
5a9ede4721
Update mock and stub syntax for specs
2015-06-22 12:13:46 +02:00
Robert Speicher and Dmitriy Zaporozhets
dad88568f3
Update and simplify Import controller specs
2015-06-22 12:13:46 +02:00
Robert Speicher and Dmitriy Zaporozhets
9874cf5953
Fix include_module matcher
2015-06-22 12:13:46 +02:00
Robert Speicher and Dmitriy Zaporozhets
afec5efc7d
Fix features syntax
2015-06-22 12:13:45 +02:00