diff options
| author | mo khan <mo.khan@gmail.com> | 2020-01-28 16:50:05 -0700 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-01-28 16:54:47 -0700 |
| commit | 845ed41691b52c96d60c80310d141458296962de (patch) | |
| tree | cadadb01de8c487b1fd2363baf3e7ecbe4b86950 /test/net | |
| parent | 043879b3ea61d917211305303bacedd0fcef70ed (diff) | |
Fix bug in redirecting to relative pathsv0.3.2
Diffstat (limited to 'test/net')
| -rw-r--r-- | test/net/client_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/net/client_test.rb b/test/net/client_test.rb index 78068d3..fa15c4f 100644 --- a/test/net/client_test.rb +++ b/test/net/client_test.rb @@ -56,6 +56,16 @@ class ClientTest < Minitest::Test end end + def test_follow_redirects_with_relative_paths + VCR.use_cassette('follow_redirects_with_relative_paths') do + subject.follow_redirects = 10 + response = subject.get("http://go.microsoft.com/fwlink/?LinkId=329770") + refute_nil response + assert_kind_of Net::HTTPOK, response + assert response.body + end + end + def test_get_with_redirects url = 'https://www.example.org/' n = 10 |
