Skip to content

Commit c948ace

Browse files
committed
Set account_id in test
1 parent c8bce73 commit c948ace

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test/drip/client_test.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,16 @@ class Drip::ClientTest < Drip::TestCase
9292
@client = Drip::Client.new do |config|
9393
config.api_key = @key
9494
config.url_prefix = @url_prefix
95+
config.account_id = "12345"
9596
end
9697
end
9798

9899
should "connect to alternate prefix with prepended v2" do
99-
stub_request(:get, "https://api.example.com/v9001/v2/subscribers/blah").
100+
stub_request(:get, "https://api.example.com/v9001/v2/12345/subscribers/blah").
100101
to_return(status: 200, body: "", headers: {})
101102
@client.subscriber("blah")
102103

103-
assert_requested :get, "https://api.example.com/v9001/v2/subscribers/blah"
104+
assert_requested :get, "https://api.example.com/v9001/v2/12345/subscribers/blah"
104105
end
105106
end
106107

0 commit comments

Comments
 (0)