Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.
avarteqgmbhPublic archive

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

CheckHttpResponse

Usage

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" }

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages