Guest User

Untitled

a guest
Apr 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. it 'should override the path, query params, and http method of the request' do
  2. #works
  3. #@application.should_receive(:call).and_return(@result)
  4.  
  5. #returns nil
  6. @application.should_receive(:call).and_return(@result) do |wrapped_request|
  7. wrapped_request.request_uri.should == '/controller/action/id'
  8. wrapped_request.query_string.should == 'fruit=apple&horse_before=cart'
  9. wrapped_request.method.should == 'GET'
  10. end
  11.  
  12. @tag.doEndTag
  13. end
Add Comment
Please, Sign In to add comment