File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 22
33RSpec . describe 'MeiliSearch::Client - Keys' do
44 context 'Test the default key roles' do
5- let ( :public_key ) { client . keys . filter { |k | k [ 'description' ] . start_with? 'Default Search API Key' } . first }
6- let ( :private_key ) { client . keys . filter { |k | k [ 'description' ] . start_with? 'Default Admin API Key' } . first }
5+ let ( :public_key ) { client . keys [ 'results' ] . filter { |k | k [ 'description' ] . start_with? 'Default Search API Key' } . first }
6+ let ( :private_key ) { client . keys [ 'results' ] . filter { |k | k [ 'description' ] . start_with? 'Default Admin API Key' } . first }
77
88 it 'fails to get settings if public key used' do
99 new_client = MeiliSearch ::Client . new ( URL , public_key [ 'key' ] )
4747
4848 context 'Test the key managements' do
4949 it 'gets the list of the default keys' do
50- response = client . keys
51- expect ( response ) . to be_a ( Array )
52- expect ( response . count ) . to be >= 2
50+ results = client . keys [ 'results' ]
51+ expect ( results ) . to be_a ( Array )
52+ expect ( results . count ) . to be >= 2
5353 end
5454
5555 it 'creates a key' do
You can’t perform that action at this time.
0 commit comments