Skip to content

Commit

Permalink
bug: fixed query param not going for delete
Browse files Browse the repository at this point in the history
  • Loading branch information
manisha1997 committed Dec 15, 2023
1 parent a3a23f0 commit 056463b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/http/http_client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@

it 'should contain params in Connection object' do
allow_any_instance_of(Faraday::Connection).to receive(:send).and_return(double('response', status: 301, body: {}, headers: { something: '1' }))
params = Twilio::Values.of({"abc" => "xyz"})
params = Twilio::Values.of({ 'abc' => 'xyz' })
@client.request('host', 'port', 'DELETE', 'url', params, nil, {}, ['a', 'b'])
expect(@client.connection.params).to eq({'abc' => 'xyz'})
expect(@client.connection.params).to eq( { 'abc' => 'xyz' })
end

describe 'last_response' do
Expand Down

0 comments on commit 056463b

Please sign in to comment.