you can do it like this:
@headers ||= {}
@headers["HTTP_REFERER"] = "previous_link_url"
get/put/post some_link_url, nil, @headers
hope this would help you.
thanks.
On Thu, Aug 27, 2009 at 8:02 PM, Jarl Friis <[email protected]> wrote:
>
> Hi.
>
> I would like to set @request.env["HTTP_REFERER"] in an integration
> test, but due to its nature, I would naturally set this value to the
> previousle request url. How do I do that.
>
> Thanks.
>
> Jarl
>
>
>
>
> >
>
--
David Angga Prasetya
Ruby on Rails developer
@ http://kiranatama.com - a Ruby on Rails outsourcing company
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---