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-06-26 18:55:20 +0300
committerShinya Maeda <shinya@gitlab.com>2017-06-28 15:58:31 +0300
commitd1fae597431c8005067a11d0030a0d690231685a (patch)
tree6377654d4a794a2df74578c1e8adce60bdc53eb1 /spec/support/matchers
parentc215b1042644775326dd99beef05be9274f61389 (diff)
Improve description_for
Diffstat (limited to 'spec/support/matchers')
-rw-r--r--spec/support/matchers/access_matchers_for_controller.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/support/matchers/access_matchers_for_controller.rb b/spec/support/matchers/access_matchers_for_controller.rb
index 59c6f528e74..78a0cc0a45d 100644
--- a/spec/support/matchers/access_matchers_for_controller.rb
+++ b/spec/support/matchers/access_matchers_for_controller.rb
@@ -47,8 +47,7 @@ module AccessMatchersForController
end
def description_for(role, type, expected, result)
- "be #{type} for #{role}." \
- " Expected: #{expected.join(',')} Got: #{result}"
+ "be #{type} for #{role}. Expected: #{expected.join(',')} Got: #{result}"
end
matcher :be_allowed_for do |role|