Skip to content

Commit

Permalink
Allow usage of typhoeus >= 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
andrehjr committed Jul 20, 2024
1 parent cde8934 commit 730cea2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ gem "rspec", "~> 3.0"
gem "sinatra"
gem "test-unit", "~> 3.4.4"
gem "timecop"
gem "typhoeus", "~> 1.1.0"
gem "typhoeus", ">= 1.1.0"
gem "webmock"
gem "webrick"
gem "yard"
4 changes: 2 additions & 2 deletions spec/lib/vcr/library_hooks/typhoeus_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ def on_headers(&callback)

it { expect(request.tap { |r| r.on_headers {} }).not_to be_streaming }

it { expect { |b| on_headers(&b) }.to yield_with_args(have_attributes(headers: include('Content-Length' => '18'))) }
it { expect { |b| on_headers(&b) }.to yield_with_args(have_attributes(headers: hash_including('Content-Length' => '18'))) }
it { expect { |b| on_headers(&b) }.to yield_with_args(have_attributes(headers: match_array(on_headers.headers))) }

it { expect(on_headers).to have_attributes(headers: include("Content-Length" => "18")) }
it { expect(on_headers).to have_attributes(headers: hash_including("Content-Length" => "18")) }
it { expect(on_headers).to have_attributes(headers: match_array(on_headers.headers)) }
end

Expand Down

0 comments on commit 730cea2

Please sign in to comment.