response = CheckHttpResponse.for(
'http://localhost:8080/page/1',
:headers => { 'Host' => 'www.mydomain.com' }
)
response.redirects_to?("http://www.mydomain.com/page1") #=> true
response.redirects_to?("http://nowhere.com/page2") #=> false
response.errors #=> { :redirect => "Wrong location! Got: http://www.mydomain.com/page1 , expected: http://nowhere.com/page2" }
-
Notifications
You must be signed in to change notification settings - Fork 0
License
avarteqgmbh/check_http_response
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published