Sha256: 48d4b82c36f558d2c8d921d92caa7c944e3da8640363fc7500b48b3b5b619d76

Contents?: true

Size: 578 Bytes

Versions: 10

Compression:

Stored size: 578 Bytes

Contents

# frozen_string_literal: true

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

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

    should "be retrievable" do
      s = Stripe::CountrySpec.retrieve("US")
      assert_requested :get, "#{Stripe.api_base}/v1/country_specs/US"
      assert(s.is_a?(Stripe::CountrySpec))
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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