Skip to content

Commit

Permalink
Merge pull request #1091 from sailor/master
Browse files Browse the repository at this point in the history
Fix included modules on Ruby 3.4
  • Loading branch information
koic authored Feb 6, 2025
2 parents 07eeb75 + c228536 commit e8c5129
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/webmock/http_lib_adapters/httpclient_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -230,18 +230,18 @@ def clear_thread_variables
end

class WebMockHTTPClient < HTTPClient
include WebMockHTTPClients

alias_method :do_get_block_without_webmock, :do_get_block
alias_method :do_get_stream_without_webmock, :do_get_stream

include WebMockHTTPClients
end

if defined? ::JSONClient
class WebMockJSONClient < JSONClient
include WebMockHTTPClients

alias_method :do_get_block_without_webmock, :do_get_block
alias_method :do_get_stream_without_webmock, :do_get_stream

include WebMockHTTPClients
end
end

Expand Down

0 comments on commit e8c5129

Please sign in to comment.