Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-07-05 15:00:22 +0300
committerShinya Maeda <shinya@gitlab.com>2017-07-05 15:00:22 +0300
commitdbd0111390fd24da8782cadcd52471ad002e12da (patch)
treed02a42c980b7d9221663cefea57b2f5c27169eea /spec/support/matchers
parent46076f15994d4af3bf9f6c70ec36547abf2d20af (diff)
Revert unnecesarry changes
Diffstat (limited to 'spec/support/matchers')
-rw-r--r--spec/support/matchers/access_matchers_for_controller.rb2
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