Forum: Ruby on Rails integration test redirects to external URLs

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
397032cb9a9aa71fef9b02a3f0dfded3?d=identicon&s=25 Matthew Margolis (Guest)
on 2007-04-29 20:24
(Received via mailing list)
In an integration test that I am writing I want to do something like

def test_my_page
    get "/rails/someaction"
     assert_response :redirect
     assert_url => 'http://www.somepageoutsidemyrailsapp'

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
This topic is locked and can not be replied to.