Sha256: ce7eb6d4970df8e9b4bcf2076b0182bdb02b1e6cdbe2231fb7f590fd61173215

Contents?: true

Size: 660 Bytes

Versions: 36

Compression:

Stored size: 660 Bytes

Contents

# frozen_string_literal: true

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

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

    should "be retrievable" do
      issfr = Stripe::IssuerFraudRecord.retrieve("issfr_123")
      assert_requested :get, "#{Stripe.api_base}/v1/issuer_fraud_records/issfr_123"
      assert issfr.is_a?(Stripe::IssuerFraudRecord)
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
stripe-4.18.0 test/stripe/issuer_fraud_record_test.rb
stripe-4.17.0 test/stripe/issuer_fraud_record_test.rb
stripe-4.16.0 test/stripe/issuer_fraud_record_test.rb
stripe-4.15.0 test/stripe/issuer_fraud_record_test.rb
stripe-4.14.0 test/stripe/issuer_fraud_record_test.rb
stripe-4.13.0 test/stripe/issuer_fraud_record_test.rb
stripe-4.12.0 test/stripe/issuer_fraud_record_test.rb
stripe-4.11.0 test/stripe/issuer_fraud_record_test.rb
stripe-4.10.0 test/stripe/issuer_fraud_record_test.rb
stripe-4.9.1 test/stripe/issuer_fraud_record_test.rb
stripe-4.9.0 test/stripe/issuer_fraud_record_test.rb
stripe-4.8.1 test/stripe/issuer_fraud_record_test.rb
stripe-4.8.0 test/stripe/issuer_fraud_record_test.rb
stripe-4.7.1 test/stripe/issuer_fraud_record_test.rb
stripe-4.7.0 test/stripe/issuer_fraud_record_test.rb
stripe-4.6.0 test/stripe/issuer_fraud_record_test.rb
stripe-4.5.0 test/stripe/issuer_fraud_record_test.rb
stripe-4.4.1 test/stripe/issuer_fraud_record_test.rb
stripe-4.4.0 test/stripe/issuer_fraud_record_test.rb
stripe-4.3.0 test/stripe/issuer_fraud_record_test.rb