
[PATCH] Custom headers in merb
Reported by Barry Mitchelson | April 20th, 2009 @ 09:29 AM
When setting custom headers for a request using the Webrat::Session#header method, these were not being included in the request made in Webrat::MerbSession#do_request. This was due to the env param passed to Merb::Test::MakeRequest#request not being formed correctly. This patch fixes the issue.
Comments and changes to this ticket
-
gaffo April 22nd, 2009 @ 12:47 PM
- Tag set to merb, patch, verify
- State changed from new to open
Barry, Is there a reason that you changed the headers tests instead of adding additional ones that didn't take the custom header?
-
Ryan Carver May 1st, 2009 @ 12:59 PM
Here is a git branch that fixes the same issue, which adds a spec to verify that headers are passed, and also includes an integration test to verify that the referer header works as expected.
-
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Ruby Acceptance Testing for Web applications.