Skip to content

Commit a4602d2

Browse files
authored
update tests (#22)
1 parent 5e640e0 commit a4602d2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/peopledatalabs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
# gem build peopledatalabs.gemspec
18-
# gem install ./peopledatalabs-3.0.0.gem
18+
# gem install ./peopledatalabs-3.0.1.gem
1919
# irb
2020
# require 'peopledatalabs'
2121
# rake spec PDL_API_KEY=API_KEY

lib/peopledatalabs/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Peopledatalabs
2-
VERSION = "3.0.0"
2+
VERSION = "3.0.1"
33
end

spec/peopledatalabs_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@
332332
describe 'sandbox' do
333333
it "should return sandbox person enrich record" do
334334
Peopledatalabs.sandbox = true
335-
result = Peopledatalabs::Enrichment.person(params: { email: '[email protected]' })
335+
result = Peopledatalabs::Enrichment.person(params: { email: '[email protected]' })
336336
expect(result['status']).to eq(200)
337337
expect(result).to be_an_instance_of(Hash)
338338
end
@@ -346,7 +346,7 @@
346346

347347
it "should return sandbox person record for a phone" do
348348
Peopledatalabs.sandbox = true
349-
result = Peopledatalabs::Identify.person(params: { company: 'walmart' })
349+
result = Peopledatalabs::Identify.person(params: { company: 'adams group' })
350350
expect(result['status']).to eq(200)
351351
expect(result).to be_an_instance_of(Hash)
352352
end
@@ -363,7 +363,7 @@
363363
query: {
364364
bool: {
365365
must: [
366-
{ term: { location_country: 'mexico' } },
366+
{ term: { location_country: 'united states' } },
367367
]
368368
}
369369
}
@@ -374,7 +374,7 @@
374374

375375
it "should return sandbox person record for a sql" do
376376
Peopledatalabs.sandbox = true
377-
result = Peopledatalabs::Search.person(searchType: 'sql', size: size, query: "SELECT * FROM person WHERE location_country='mexico';")
377+
result = Peopledatalabs::Search.person(searchType: 'sql', size: size, query: "SELECT * FROM person WHERE location_country='united states';")
378378
expect(result['status']).to eq(200)
379379
expect(result['data'].length).to eq([result['total'], size].min)
380380
expect(result).to be_an_instance_of(Hash)

0 commit comments

Comments
 (0)