diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-06-28 00:31:26 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-06-28 21:58:31 +0900 |
commit | a513ae4ae58cf1f55872cc07c734866167eae45f (patch) | |
tree | 5c9923ab4ae6744d4a5ca55c9ebadcae4bc40de2 /spec/support/matchers | |
parent | 07b0615e2b59cbd3f277e17d7d0e1bf7f11f9fee (diff) | |
download | gitlab-ce-a513ae4ae58cf1f55872cc07c734866167eae45f.tar.gz |
use go instead of let proc
Diffstat (limited to 'spec/support/matchers')
-rw-r--r-- | spec/support/matchers/access_matchers_for_controller.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/support/matchers/access_matchers_for_controller.rb b/spec/support/matchers/access_matchers_for_controller.rb index d9980ff2f98..c951c6b754d 100644 --- a/spec/support/matchers/access_matchers_for_controller.rb +++ b/spec/support/matchers/access_matchers_for_controller.rb @@ -52,8 +52,8 @@ module AccessMatchersForController matcher :be_allowed_for do |role| match do |action| - user = emulate_user(role, @membership) - action.call(user) + emulate_user(role, @membership) + action.call EXPECTED_STATUS_CODE_ALLOWED.include?(response.status) end @@ -68,8 +68,8 @@ module AccessMatchersForController matcher :be_denied_for do |role| match do |action| - user = emulate_user(role, @membership) - action.call(user) + emulate_user(role, @membership) + action.call EXPECTED_STATUS_CODE_DENIED.include?(response.status) end |