diff --git a/lib/httparty/module_inheritable_attributes.rb b/lib/httparty/module_inheritable_attributes.rb index c8012d1..6268564 100644 --- a/lib/httparty/module_inheritable_attributes.rb +++ b/lib/httparty/module_inheritable_attributes.rb @@ -10,7 +10,7 @@ module HTTParty duplicate.each_pair do |key, value| duplicate[key] = if value.is_a?(Hash) - hash_deep_dup(value) + hash_deep_dup(value) elsif value.is_a?(Proc) duplicate[key] = value.dup else diff --git a/spec/httparty/cookie_hash_spec.rb b/spec/httparty/cookie_hash_spec.rb index 1e93a03..9f48719 100644 --- a/spec/httparty/cookie_hash_spec.rb +++ b/spec/httparty/cookie_hash_spec.rb @@ -37,7 +37,7 @@ RSpec.describe HTTParty::CookieHash do end it "should handle '=' within cookie value" do - @cookie_hash.add_cookies("first=one=1; second=two=2==") + @cookie_hash.add_cookies("first=one=1; second=two=2==") expect(@cookie_hash.keys).to include(:first, :second) expect(@cookie_hash[:first]).to eq('one=1') expect(@cookie_hash[:second]).to eq('two=2==') diff --git a/spec/httparty/request_spec.rb b/spec/httparty/request_spec.rb index 9e08761..3cfd6fc 100644 --- a/spec/httparty/request_spec.rb +++ b/spec/httparty/request_spec.rb @@ -865,7 +865,7 @@ RSpec.describe HTTParty::Request do it "should raise RedirectionTooDeep error if limit is negative" do expect { - HTTParty::Request.new(Net::HTTP::Post, 'http://api.foo.com/v1', limit: -1).perform + HTTParty::Request.new(Net::HTTP::Post, 'http://api.foo.com/v1', limit: -1).perform }.to raise_error(HTTParty::RedirectionTooDeep, 'HTTP redirects too deep') end end