Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xavdid-stripe committed Oct 18, 2024
1 parent 38a3650 commit 1814d86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/stripe/api_resource_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ def self.object_name

should "raise an NotImplementedError on refresh" do
stub_request(:post, "#{Stripe::DEFAULT_API_BASE}/v2/billing/meter_event_session")
.to_return(body: JSON.generate(object: "billing.meter_event_session"))
.to_return(body: JSON.generate(object: "v2.billing.meter_event_session"))

client = Stripe::StripeClient.new("sk_test_123")
session = client.v2.billing.meter_event_session.create
Expand Down
2 changes: 1 addition & 1 deletion test/stripe/stripe_service_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class StripeServiceTest < Test::Unit::TestCase

should "correctly deserialize v2 account object" do
stub_request(:post, "#{Stripe::DEFAULT_API_BASE}/v2/billing/meter_event_session")
.to_return(body: JSON.generate(object: "billing.meter_event_session"))
.to_return(body: JSON.generate(object: "v2.billing.meter_event_session"))

client = Stripe::StripeClient.new("sk_test_123")

Expand Down

0 comments on commit 1814d86

Please sign in to comment.