Skip to content

Commit ae5874d

Browse files
authored
fix(api-keys): send opts with waitable method (#443)
1 parent 149eabc commit ae5874d

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## [Unreleased](https://github.com/algolia/algoliasearch-client-ruby/compare/2.0.3...master)
44

5+
### Fix
6+
- `app_api_key`: send opts with waitable method
7+
58
## [2.0.3](https://github.com/algolia/algoliasearch-client-ruby/compare/2.0.2...2.0.3) (2020-11-24)
69

710
### Chore

lib/algolia/search_client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def add_api_key(acl, opts = {})
300300
# @return [AddApiKeyResponse]
301301
#
302302
def add_api_key!(acl, opts = {})
303-
response = add_api_key(acl)
303+
response = add_api_key(acl, opts)
304304

305305
response.wait(opts)
306306
end

test/algolia/integration/search_client_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ def teardown
215215

216216
def test_api_keys
217217
assert_equal ['search'], @api_key[:acl]
218+
assert_equal 'A description', @api_key[:description]
218219

219220
api_keys = @@search_client.list_api_keys[:keys].map do |key|
220221
key[:value]

0 commit comments

Comments
 (0)