Changeset 625

Show
Ignore:
Timestamp:
09/10/07 22:04:12 (1 year ago)
Author:
iv..@gweezlebur.com
Message:

add fake_request test helper

Files:

Legend:

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

    r622 r625  
    3030  Merb::Dispatcher.handle request, res 
    3131end 
     32 
     33def fake_request(path="/",method='GET') 
     34  method = method.to_s.upcase 
     35  Merb::Test::FakeRequest.with(path, :request_method => method) 
     36end