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

Fix test by using string for header key

This commit is contained in:
AjitSingh 2018-08-18 09:59:26 +05:30
parent 0cb0d873e8
commit 624f119db7

View file

@ -150,7 +150,7 @@ RSpec.describe HTTParty do
stub_request(:get, "http://example.com/").with(headers: {'foo' => 'bar', 'baz' => 'spax'}) stub_request(:get, "http://example.com/").with(headers: {'foo' => 'bar', 'baz' => 'spax'})
@klass.get('http://example.com/', headers: {baz: -> {'spax'}}) @klass.get('http://example.com/', headers: {'baz' => -> {'spax'}})
expect(@klass.headers).to eq(init_headers) expect(@klass.headers).to eq(init_headers)
end end