1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00

Mitigates Style/IndentationWidth

This commit is contained in:
Thomas Nys 2015-04-18 13:35:49 +02:00
parent 9f60913fc5
commit e00c9bce54
3 changed files with 3 additions and 3 deletions

View file

@ -10,7 +10,7 @@ module HTTParty
duplicate.each_pair do |key, value| duplicate.each_pair do |key, value|
duplicate[key] = if value.is_a?(Hash) duplicate[key] = if value.is_a?(Hash)
hash_deep_dup(value) hash_deep_dup(value)
elsif value.is_a?(Proc) elsif value.is_a?(Proc)
duplicate[key] = value.dup duplicate[key] = value.dup
else else

View file

@ -37,7 +37,7 @@ RSpec.describe HTTParty::CookieHash do
end end
it "should handle '=' within cookie value" do 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.keys).to include(:first, :second)
expect(@cookie_hash[:first]).to eq('one=1') expect(@cookie_hash[:first]).to eq('one=1')
expect(@cookie_hash[:second]).to eq('two=2==') expect(@cookie_hash[:second]).to eq('two=2==')

View file

@ -865,7 +865,7 @@ RSpec.describe HTTParty::Request do
it "should raise RedirectionTooDeep error if limit is negative" do it "should raise RedirectionTooDeep error if limit is negative" do
expect { 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') }.to raise_error(HTTParty::RedirectionTooDeep, 'HTTP redirects too deep')
end end
end end