Sha256: 5177fe1e819f1b2dd20be24600e53744e1f285b528139b92232679b118e278a7
Contents?: true
Size: 760 Bytes
Versions: 1
Compression:
Stored size: 760 Bytes
Contents
# frozen_string_literal: true require ::File.expand_path("../../../test_helper", __FILE__) module Stripe module Radar class EarlyFraudWarningTest < Test::Unit::TestCase should "be listable" do warnings = Stripe::Radar::EarlyFraudWarning.list assert_requested :get, "#{Stripe.api_base}/v1/radar/early_fraud_warnings" assert warnings.data.is_a?(Array) assert warnings.data[0].is_a?(Stripe::Radar::EarlyFraudWarning) end should "be retrievable" do warning = Stripe::Radar::EarlyFraudWarning.retrieve("issfr_123") assert_requested :get, "#{Stripe.api_base}/v1/radar/early_fraud_warnings/issfr_123" assert warning.is_a?(Stripe::Radar::EarlyFraudWarning) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stripe-4.18.0 | test/stripe/radar/early_fraud_warning_test.rb |