diff --git a/spec/meilisearch/client/keys_spec.rb b/spec/meilisearch/client/keys_spec.rb index 4a83274c..3644be3a 100644 --- a/spec/meilisearch/client/keys_spec.rb +++ b/spec/meilisearch/client/keys_spec.rb @@ -31,6 +31,12 @@ expect(new_key['description']).to eq('A new key to add docs') end + it 'creates a key with wildcarded action' do + new_key = client.create_key(add_docs_key_options.merge(actions: ['documents.*'])) + + expect(new_key['actions']).to eq(['documents.*']) + end + it 'creates a key with setting uid' do new_key = client.create_key(add_docs_key_options.merge(uid: uuid_v4))