summaryrefslogtreecommitdiff
path: root/spec/support/matchers
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-06-06 00:13:17 +0900
committerShinya Maeda <shinya@gitlab.com>2017-06-28 21:58:31 +0900
commite9734c6df33dba7ab89d4c575ace3a508c5da64b (patch)
treec9397193b50c117dbaf05f6f322ee372bd543c71 /spec/support/matchers
parent8026f47d67546d48139cb35a0dc16bbac47b1bb7 (diff)
downloadgitlab-ce-e9734c6df33dba7ab89d4c575ace3a508c5da64b.tar.gz
Resolve static analysis
Diffstat (limited to 'spec/support/matchers')
-rw-r--r--spec/support/matchers/access_matchers_for_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/matchers/access_matchers_for_controller.rb b/spec/support/matchers/access_matchers_for_controller.rb
index 4da10247801..14500201a59 100644
--- a/spec/support/matchers/access_matchers_for_controller.rb
+++ b/spec/support/matchers/access_matchers_for_controller.rb
@@ -49,7 +49,7 @@ module AccessMatchersForController
user = emulate_user(role, @membership)
begin
action.call(user)
- rescue Exception => e
+ rescue
# Ignore internal exceptions which will be caused in the controller
# In such cases, response.status will be 200.
end
@@ -70,7 +70,7 @@ module AccessMatchersForController
user = emulate_user(role, @membership)
begin
action.call(user)
- rescue Exception => e
+ rescue
# Ignore internal exceptions which will be caused in the controller
# In such cases, response.status will be 200.
end