Commit d1fae597 authored by Shinya Maeda's avatar Shinya Maeda

Improve description_for

parent c215b104
...@@ -47,8 +47,7 @@ module AccessMatchersForController ...@@ -47,8 +47,7 @@ module AccessMatchersForController
end end
def description_for(role, type, expected, result) def description_for(role, type, expected, result)
"be #{type} for #{role}." \ "be #{type} for #{role}. Expected: #{expected.join(',')} Got: #{result}"
" Expected: #{expected.join(',')} Got: #{result}"
end end
matcher :be_allowed_for do |role| matcher :be_allowed_for do |role|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment