Skip to content

Commit

Permalink
Merge upstream and update generated code for v426
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Jul 21, 2023
2 parents 4981cc8 + 62fb31d commit 2227067
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/stripe/generated_examples_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1695,6 +1695,13 @@ class CodegennedExampleTest < Test::Unit::TestCase
assert_requested :get, "#{Stripe.api_base}/v1/quotes/qt_xxxxxxxxxxxxx/line_items?"
end
end
context "Quote.pdf" do
should "support requests with args: id" do
block_handler = {}
Stripe::Quote.pdf("qt_xxxxxxxxxxxxx", &block_handler)
assert_requested :get, "#{Stripe.api_base}/v1/quotes/qt_xxxxxxxxxxxxx/pdf?"
end
end
context "Quote.preview_invoice_lines" do
should "support requests with args: quote, preview_invoice" do
Stripe::Quote.preview_invoice_lines("qt_xyz", "in_xyz")
Expand Down
1 change: 1 addition & 0 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class TestCase
setup do
Stripe.api_key = "sk_test_123"
Stripe.api_base = "http://localhost:#{MOCK_PORT}"
Stripe.uploads_base = "http://localhost:#{MOCK_PORT}"

Stripe.authenticator = nil

Expand Down

0 comments on commit 2227067

Please sign in to comment.