# File lib/merb-core/test/matchers/controller_matchers.rb, line 35definitialize(expected)
@expected = expectedend
Public Instance Methods
failure_message()click to toggle source
# File lib/merb-core/test/matchers/controller_matchers.rb, line 45deffailure_message"expected #{@target} to be a #{@expected} error, but it was "<<@target.request.exceptions.first.inspectend
matches?(target)click to toggle source
# File lib/merb-core/test/matchers/controller_matchers.rb, line 39defmatches?(target)
@target = target@target.request.exceptions&&@target.request.exceptions.first.is_a?(@expected)
end
negative_failure_message()click to toggle source
# File lib/merb-core/test/matchers/controller_matchers.rb, line 50defnegative_failure_message"expected #{@target} not to be a #{@expected} error, but it was"end