Skip to content

Commit 9a957a2

Browse files
committed
Do not speculate about em-http-request version
1 parent 34d1628 commit 9a957a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/webmock/http_lib_adapters/em_http_request_adapter.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
return if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.4.0') && Gem.loaded_specs['em-http-request'].version <= Gem::Version.new('1.1.7')
3+
return if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.4.0')
44

55
begin
66
require 'em-http-request'

spec/acceptance/em_http_request/em_http_request_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
before(:all) do
1212
skip 'em-http-request is not supported on JRuby' if RUBY_PLATFORM =~ /java/
13-
skip 'em-http-request <= 1.1.7 is not supported on Ruby >= 3.4' if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.4.0') && Gem.loaded_specs['em-http-request'].version <= Gem::Version.new('1.1.7')
13+
skip 'em-http-request is not supported on Ruby >= 3.4' if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.4.0')
1414
end
1515

1616
include_context "with WebMock", :no_status_message

0 commit comments

Comments
 (0)