Class 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
55:   def be_error(expected)
56:     BeError.new(expected)
57:   end
provide( expected ) click to toggle source

Passes if the controller actually provides the target format

Parameters

expected

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
105:   def provide( expected )
106:     Provide.new( expected )
107:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.