Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/customerio/base_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ def request_class(method)
Net::HTTP::Put
when :delete
Net::HTTP::Delete
when :get
Net::HTTP::Get
Comment on lines +75 to +76
Copy link

Copilot AI Dec 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The GET request support lacks test coverage. Consider adding a test case in spec/base_client_spec.rb similar to the existing tests for PUT requests, to verify that GET requests work correctly with both authentication methods (site_id/api_key and app_key).

Copilot uses AI. Check for mistakes.
else
raise InvalidRequest.new("Invalid request method #{method.inspect}")
end
Expand Down