Commit d1fae597 authored by Shinya Maeda's avatar Shinya Maeda

Improve description_for

parent c215b104
......@@ -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|
......
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