From 91b11aae46909d2ceccad2c8b7439f101d5da9d8 Mon Sep 17 00:00:00 2001 From: Brad Lindsay Date: Tue, 9 Feb 2021 12:51:54 -0600 Subject: [PATCH] Fix method call in spec for Ruby 3.0.0 Ruby 3.0.0 requires transforming a hash to named parameters. --- spec/httparty/request/body_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/httparty/request/body_spec.rb b/spec/httparty/request/body_spec.rb index 11aaac3..b6c7bb7 100644 --- a/spec/httparty/request/body_spec.rb +++ b/spec/httparty/request/body_spec.rb @@ -5,7 +5,7 @@ RSpec.describe HTTParty::Request::Body do describe '#call' do let(:options) { {} } - subject { described_class.new(params, options).call } + subject { described_class.new(params, **options).call } context 'when params is string' do let(:params) { 'name=Bob%20Jones' }