diff options
| author | mokha <mokha@cisco.com> | 2019-02-06 10:48:53 -0700 |
|---|---|---|
| committer | mokha <mokha@cisco.com> | 2019-02-06 10:48:53 -0700 |
| commit | f28c0404dfe5d56a770246c3946ce5650ba46e3c (patch) | |
| tree | 1a90a0acba2942a6cbbb3e3c8f18cf7d7391e96c /test/net/client_test.rb | |
| parent | 7101ff16afe96540446a4256be3d33577a8b9392 (diff) | |
default path to "/"
Diffstat (limited to 'test/net/client_test.rb')
| -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 4cd1aa1..395441c 100644 --- a/test/net/client_test.rb +++ b/test/net/client_test.rb @@ -18,6 +18,16 @@ class ClientTest < Minitest::Test end end + def test_get_root_path + VCR.use_cassette('get_root') do + uri = URI.parse('https://www.mokhan.ca') + response = subject.get(uri, headers: {}) + refute_nil response + assert_equal response.code, "200" + assert response.body.include?("<!DOCTYPE html>") + end + end + def test_get_with_retry uri = URI.parse('https://www.example.org/api/scim/v2/schemas') WebMock.stub_request(:get, uri.to_s) |
