Changeset 1324

Show
Ignore:
Timestamp:
01/25/08 20:55:38 (10 months ago)
Author:
has.s..@gmail.com
Message:

Fixes an issue with :yields in the spec helpers where it was being passed through to the controller params

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/merb/test/helper.rb

    r1323 r1324  
    4141        response = StringIO.new 
    4242         
     43        yield_to_controller = opts.delete(:yields) 
     44         
    4345        request = opts.delete(:fake_request) || Merb::Test::FakeRequest.with(path_with_options(path, opts), :request_method => (verb.to_s.upcase rescue 'GET')) 
    4446 
    45         yield_to_controller = opts.delete(:yields) 
    46          
    4747        if yield_to_controller == :controller 
    4848          request_yielding_controller(request, response, &block)