Sha256: cd1b19e99e51a4fa7f993e24e814059ada503d07d7396edbfe83a5f3309c0c73

Contents?: true

Size: 775 Bytes

Versions: 34

Compression:

Stored size: 775 Bytes

Contents

# frozen_string_literal: true

require ::File.expand_path("../../../test_helper", __FILE__)

module Stripe
  module Reporting
    class ReportTypeTest < Test::Unit::TestCase
      should "be listable" do
        report_types = Stripe::Reporting::ReportType.list
        assert_requested :get, "#{Stripe.api_base}/v1/reporting/report_types"
        assert report_types.data.is_a?(Array)
        assert report_types.data[0].is_a?(Stripe::Reporting::ReportType)
      end

      should "be retrievable" do
        report_type = Stripe::Reporting::ReportType.retrieve("activity.summary.1")
        assert_requested :get, "#{Stripe.api_base}/v1/reporting/report_types/activity.summary.1"
        assert report_type.is_a?(Stripe::Reporting::ReportType)
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
stripe-4.2.0 test/stripe/reporting/report_type_test.rb
stripe-4.1.0 test/stripe/reporting/report_type_test.rb
stripe-4.0.3 test/stripe/reporting/report_type_test.rb
stripe-4.0.2 test/stripe/reporting/report_type_test.rb
stripe-4.0.1 test/stripe/reporting/report_type_test.rb
stripe-4.0.0 test/stripe/reporting/report_type_test.rb
stripe-3.31.1 test/stripe/reporting/report_type_test.rb
stripe-3.31.0 test/stripe/reporting/report_type_test.rb
stripe-3.30.0 test/stripe/reporting/report_type_test.rb
stripe-3.29.0 test/stripe/reporting/report_type_test.rb
stripe-3.28.0 test/stripe/reporting/report_type_test.rb
stripe-3.27.0 test/stripe/reporting/report_type_test.rb
stripe-3.26.1 test/stripe/reporting/report_type_test.rb
stripe-3.26.0 test/stripe/reporting/report_type_test.rb