spec/search_spec.rb in cloudinary-1.8.0 vs spec/search_spec.rb in cloudinary-1.8.1

- old
+ new

@@ -25,16 +25,16 @@ query = Cloudinary::Search.sort_by('created_at', 'asc').sort_by('updated_at', 'desc').to_h expect(query).to eq(sort_by: [{ 'created_at' => 'asc' }, { 'updated_at' => 'desc' }]) end it 'should add max_results to query' do - query = Cloudinary::Search.max_results('format:jpg').to_h - expect(query).to eq(max_results: 'format:jpg') + query = Cloudinary::Search.max_results(10).to_h + expect(query).to eq(max_results: 10) end it 'should add next_cursor to query' do - query = Cloudinary::Search.next_cursor('format:jpg').to_h - expect(query).to eq(next_cursor: 'format:jpg') + query = Cloudinary::Search.next_cursor('ASDFIUHASF9832HAFSOF').to_h + expect(query).to eq(next_cursor: 'ASDFIUHASF9832HAFSOF') end it 'should add aggregations arguments as array to query' do query = Cloudinary::Search.aggregate('format').aggregate('size_category').to_h expect(query).to eq(aggregate: %w(format size_category))