Sha256: 121d769dc70ef40c94285a3f81800867ec72826eb9204869b15b5d3daab22bcb

Contents?: true

Size: 658 Bytes

Versions: 10

Compression:

Stored size: 658 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

10 entries across 10 versions & 1 rubygems

Version Path
stripe-3.23.0 test/stripe/issuer_fraud_record_test.rb
stripe-3.22.0 test/stripe/issuer_fraud_record_test.rb
stripe-3.21.0 test/stripe/issuer_fraud_record_test.rb
stripe-3.20.0 test/stripe/issuer_fraud_record_test.rb
stripe-3.19.0 test/stripe/issuer_fraud_record_test.rb
stripe-3.18.0 test/stripe/issuer_fraud_record_test.rb
stripe-3.17.2 test/stripe/issuer_fraud_record_test.rb
stripe-3.17.1 test/stripe/issuer_fraud_record_test.rb
stripe-3.17.0 test/stripe/issuer_fraud_record_test.rb
stripe-3.15.0 test/stripe/issuer_fraud_record_test.rb