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:
parent
0cb0d873e8
commit
624f119db7
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ RSpec.describe HTTParty do
|
|||
|
||||
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)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue