diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-07-05 15:00:22 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-07-05 15:00:22 +0300 |
commit | dbd0111390fd24da8782cadcd52471ad002e12da (patch) | |
tree | d02a42c980b7d9221663cefea57b2f5c27169eea /spec/support/matchers | |
parent | 46076f15994d4af3bf9f6c70ec36547abf2d20af (diff) |
Revert unnecesarry changes
Diffstat (limited to 'spec/support/matchers')
-rw-r--r-- | spec/support/matchers/access_matchers_for_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/matchers/access_matchers_for_controller.rb b/spec/support/matchers/access_matchers_for_controller.rb index 40d6e221428..ff60bd0c0ae 100644 --- a/spec/support/matchers/access_matchers_for_controller.rb +++ b/spec/support/matchers/access_matchers_for_controller.rb @@ -65,7 +65,7 @@ module AccessMatchersForController end matcher :be_allowed_for do |role| - match do |action, &block| + match do |action| user = emulate_user(role, @membership) update_owner(@objects, user) action.call |