-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support passing params to list queries
Adding this option to support passing query params when listing customers as per: https://developer.helpscout.com/mailbox-api/endpoints/customers/list/
- Loading branch information
1 parent
0149201
commit 918008e
Showing
2 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,12 @@ | |
|
||
include_examples 'getable integration' | ||
include_examples 'listable integration' | ||
|
||
describe 'list' do | ||
it "finds customers filtered with query" do | ||
result = described_class.list(query: '(email="[email protected]")') | ||
expect(result).to be_a Array | ||
expect(result).to all(be_a(described_class)) | ||
end | ||
end | ||
end |