mirror of
https://github.com/jnunemaker/httparty
synced 2023-03-27 23:23:07 -04:00
Mitigates Style/IndentationWidth
This commit is contained in:
parent
9f60913fc5
commit
e00c9bce54
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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==')
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue