Module: Merb::Test::Rspec::ControllerMatchers

Defined in:
lib/merb-core/test/matchers/controller_matchers.rb

Defined Under Namespace

Classes: BeError, BeRedirect, Provide

Instance Method Summary collapse

Instance Method Details

#be_error(expected) ⇒ Object



55
56
57
# File 'lib/merb-core/test/matchers/controller_matchers.rb', line 55

def be_error(expected)
  BeError.new(expected)
end

#provide(expected) ⇒ Object

Passes if the controller actually provides the target format

Parameters

expected<Symbol>

A format to check

Examples

ControllerClass.should provide( :html )
controller_instance.should provide( :xml )


105
106
107
# File 'lib/merb-core/test/matchers/controller_matchers.rb', line 105

def provide( expected )
  Provide.new( expected )
end