Skip to content

Commit

Permalink
Add build_http_query to spec
Browse files Browse the repository at this point in the history
  • Loading branch information
atejada committed Feb 28, 2024
1 parent 6356b9b commit 2bbb465
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/nylas/handler/http_client_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class TestHttpClient
end
end

describe "#build_query" do
describe "#build_http_query" do
it "returns the correct query params" do
uri = URI.parse("https://test.api.nylas.com/foo")
params = {
Expand All @@ -190,7 +190,7 @@ class TestHttpClient
map: { key1: "value1", key2: "value2" }
}

final_uri = http_client.send(:build_query, uri, params)
final_uri = http_client.send(:build_http_query, uri, params)

expect(final_uri.to_s).to eq("https://test.api.nylas.com/foo?foo=bar&list=a&list=b&list=c&map=key1%3Avalue1&map=key2%3Avalue2")
end
Expand Down

0 comments on commit 2bbb465

Please sign in to comment.