In an integration test that I am writing I want to do something like
def test_my_page
get "/rails/someaction"
assert_response :redirect
follow_redirect!
assert_url => ''http://www.somepageoutsidemyrailsapp''
end
Is there any way to do something like ''assert_url'' and see if
I was
redirected to a page outside of the rails application? If the page
was part of my rails app I could use assert_redirected_to but since I
want to check against a full URL I don''t know how to proceed.
Thank you,
Matt Margolis
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---