Class/Module Index [+]

Quicksearch

Merb::Test::Rspec::ControllerMatchers

Public Instance Methods

be_error(expected) click to toggle source
# File lib/merb-core/test/matchers/controller_matchers.rb, line 55
def be_error(expected)
  BeError.new(expected)
end
provide( expected ) click to toggle source

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 )
# File lib/merb-core/test/matchers/controller_matchers.rb, line 105
def provide( expected )
  Provide.new( expected )
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.