Skip to content

Commit c6c0d54

Browse files
committed
Configure Patch in the estimate orders spec
1 parent d6d3a6d commit c6c0d54

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

spec/integration/orders_spec.rb

+7-1
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,14 @@
2929
end
3030
end
3131

32-
it "supports place and cancel for order created via an estimate" do
32+
it "supports place and cancel for orders created via an estimate" do
3333
VCR.use_cassette('estimate_orders') do
34+
# Configure the Patch gem
35+
Patch.configure do |config|
36+
config.access_token = ENV['PATCH_RUBY_API_KEY']
37+
config.host = ENV['PATCH_RUBY_HOST']
38+
end
39+
3440
create_estimate_to_place_response = Patch::Estimate.create_mass_estimate(mass_g: 100)
3541
order_to_place_id = create_estimate_to_place_response.data.order.id
3642

0 commit comments

Comments
 (0)