• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stripe / stripe-ruby / #5867

18 Apr 2024 09:24PM UTC coverage: 92.724% (-4.8%) from 97.485%
#5867

push

github

ramya-stripe
Bump version to 11.2.0

10067 of 10857 relevant lines covered (92.72%)

258.85 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

91.67
/test/stripe/usage_record_summary_test.rb
1
# frozen_string_literal: true
2

3
require File.expand_path("../test_helper", __dir__)
1✔
4

5
module Stripe
1✔
6
  class UsageRecordSummaryTest < Test::Unit::TestCase
1✔
7
    should "be listable" do
1✔
8
      old_stderr = $stderr
1✔
9
      $stderr = StringIO.new
1✔
10

11
      begin
×
12
        transactions = Stripe::SubscriptionItem.list_usage_record_summaries("si_123")
2✔
13

14
        assert_requested :get, "#{Stripe.api_base}/v1/subscription_items/si_123/usage_record_summaries"
1✔
15
        assert transactions.data.is_a?(Array)
1✔
16
        assert transactions.first.is_a?(Stripe::UsageRecordSummary)
1✔
17
      ensure
18
        $stderr = old_stderr
1✔
19
      end
20
    end
21
  end
22
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc