mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-04 00:00:47 -04:00
* chore!: Update CA certifacte bundle (Apr 26). (#1079) * Generate stripe-ruby with breaking changes (#1102) * Generate stripe-ruby with breaking changes * Remove RecipientTest * Remove AlipayAccount tests * Regenerate files * Delete outdated tests * Fix more tests * Fix more tests * Fix example test manually * Update retrieve_cash_balance method to have params. (#1104) Co-authored-by: Dominic Charley-Roy <78050200+dcr-stripe@users.noreply.github.com>
23 lines
626 B
Ruby
23 lines
626 B
Ruby
# frozen_string_literal: true
|
|
|
|
require ::File.expand_path("../test_helper", __dir__)
|
|
|
|
module Stripe
|
|
class UsageRecordSummaryTest < Test::Unit::TestCase
|
|
should "be listable" do
|
|
old_stderr = $stderr
|
|
$stderr = StringIO.new
|
|
|
|
begin
|
|
transactions = Stripe::SubscriptionItem.list_usage_record_summaries("si_123")
|
|
|
|
assert_requested :get, "#{Stripe.api_base}/v1/subscription_items/si_123/usage_record_summaries"
|
|
assert transactions.data.is_a?(Array)
|
|
assert transactions.first.is_a?(Stripe::UsageRecordSummary)
|
|
ensure
|
|
$stderr = old_stderr
|
|
end
|
|
end
|
|
end
|
|
end
|