From 02d08020992680e958545b1b17861820b8091c4d Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Tue, 17 Jul 2018 17:41:32 +0200 Subject: [PATCH] Test stabilization: Clearbit return value varies for APIHub Organization. --- test/integration/clearbit_test.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/integration/clearbit_test.rb b/test/integration/clearbit_test.rb index b5060db1e..03f0e54f0 100644 --- a/test/integration/clearbit_test.rb +++ b/test/integration/clearbit_test.rb @@ -278,8 +278,7 @@ class ClearbitTest < ActiveSupport::TestCase ] assert_includes(sometimes_changing_but_valid_addresses, customer6.address) - organization6 = Organization.find_by(name: 'APIHub, Inc.') - #assert_nil(organization6, 'unable to find org of user') + organization6 = Organization.find_by('name LIKE ?', 'APIHub, Inc%') assert(ExternalSync.find_by(source: 'clearbit', object: 'Organization', o_id: organization6.id)) assert_equal(false, organization6.shared) assert_equal('Clearbit provides powerful products and data APIs to help your business grow. Contact enrichment, lead generation, financial compliance, and more...', organization6.note)