diff options
| author | mo khan <mo@mokhan.ca> | 2025-07-06 13:59:46 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-07-06 13:59:46 -0600 |
| commit | bba121d0242323f83e298c3725ac4df176c62417 (patch) | |
| tree | 3bff02fa0650c86da84818d6d940b9b81cc3a359 /test/net/client_test.rb | |
| parent | d36b6e4f7c99b96aee01656e2ca57312d77a55b6 (diff) | |
| parent | 58d4e9be69cf5fbc951bc63858ac899dded47bee (diff) | |
resolve: merge conflicts with main branch
- Merge latest main branch changes including Ruby 3.2+ requirement
- Combine new stdlib dependencies with Rust extension support
- Maintain backward compatibility while adding new features
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'test/net/client_test.rb')
| -rw-r--r-- | test/net/client_test.rb | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/test/net/client_test.rb b/test/net/client_test.rb index 0b8b3ea..45ea419 100644 --- a/test/net/client_test.rb +++ b/test/net/client_test.rb @@ -3,8 +3,7 @@ require 'test_helper' class ClientTest < Minitest::Test attr_reader :subject - def initialize(*args) - super + def setup @subject = Net::Hippie::Client.new end @@ -303,4 +302,19 @@ class ClientTest < Minitest::Test end assert(@called) end + + def test_logger + VCR.turned_off do + WebMock.allow_net_connect! + StringIO.open do |io| + subject = Net::Hippie::Client.new(logger: Logger.new(io, level: :debug)) + response = subject.get('https://www.example.org/') + + refute_nil response + assert_kind_of Net::HTTPOK, response + io.rewind + assert_match %r{^(opening connection to www.example.org:443)}, io.read + end + end + end end |
