Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
vvillait88 committed Dec 17, 2024
1 parent 8056702 commit c50bdbc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/peopledatalabs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,12 @@
expect(result).to be_an_instance_of(Hash)
end

it "should return autocomplete record for class" do
result = Peopledatalabs::Autocomplete.retrieve(field: 'class', text: 'product', size: 10, updated_title_roles: true)
expect(result['status']).to eq(200)
expect(result).to be_an_instance_of(Hash)
end

it "should error" do
result = Peopledatalabs::Autocomplete.retrieve(field: nil)
expect(result['status']).to eq(400)
Expand Down

0 comments on commit c50bdbc

Please sign in to comment.