Parent

Class Index [+]

Quicksearch

Merb::Test::Rspec::ControllerMatchers::BeError

Public Class Methods

new(expected) click to toggle source
    # File lib/merb-core/test/matchers/controller_matchers.rb, line 35
35:     def initialize(expected)
36:       @expected = expected
37:     end

Public Instance Methods

failure_message() click to toggle source
    # File lib/merb-core/test/matchers/controller_matchers.rb, line 45
45:     def failure_message
46:       "expected #{@target} to be a #{@expected} error, but it was " << 
47:         @target.request.exceptions.first.inspect
48:     end
matches?(target) click to toggle source
    # File lib/merb-core/test/matchers/controller_matchers.rb, line 39
39:     def matches?(target)
40:       @target = target
41:       @target.request.exceptions &&
42:         @target.request.exceptions.first.is_a?(@expected)
43:     end
negative_failure_message() click to toggle source
    # File lib/merb-core/test/matchers/controller_matchers.rb, line 50
50:     def negative_failure_message
51:       "expected #{@target} not to be a #{@expected} error, but it was"
52:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.