Sha256: 1227146de1dd06478c55af94998c7580e8d0191a719ce597d4f0e4b0109783e7

Contents?: true

Size: 626 Bytes

Versions: 20

Compression:

Stored size: 626 Bytes

Contents

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

module Stripe
  class CountrySpecTest < Test::Unit::TestCase
    FIXTURE = API_FIXTURES.fetch(:country_spec)

    should "be listable" do
      c = Stripe::CountrySpec.list
      assert_requested :get, "#{Stripe.api_base}/v1/country_specs"
      assert c.data.kind_of?(Array)
      assert c.data[0].kind_of?(Stripe::CountrySpec)
    end

    should "be retrievable" do
      s = Stripe::CountrySpec.retrieve(FIXTURE[:id])
      assert_requested :get, "#{Stripe.api_base}/v1/country_specs/#{FIXTURE[:id]}"
      assert(s.kind_of?(Stripe::CountrySpec))
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
stripe-3.0.3 test/stripe/country_spec_test.rb
stripe-3.0.1 test/stripe/country_spec_test.rb
stripe-3.0.0 test/stripe/country_spec_test.rb
stripe-2.12.0 test/stripe/country_spec_test.rb
stripe-2.11.0 test/stripe/country_spec_test.rb
stripe-2.10.0 test/stripe/country_spec_test.rb
stripe-2.9.0 test/stripe/country_spec_test.rb
stripe-2.8.0 test/stripe/country_spec_test.rb
stripe-2.7.0 test/stripe/country_spec_test.rb
stripe-2.6.0 test/stripe/country_spec_test.rb
stripe-2.5.0 test/stripe/country_spec_test.rb
stripe-2.4.0 test/stripe/country_spec_test.rb
stripe-2.3.0 test/stripe/country_spec_test.rb
stripe-2.2.1 test/stripe/country_spec_test.rb
stripe-2.2.0 test/stripe/country_spec_test.rb
stripe-2.1.0 test/stripe/country_spec_test.rb
stripe-2.0.3 test/stripe/country_spec_test.rb
stripe-2.0.2 test/stripe/country_spec_test.rb
stripe-2.0.1 test/stripe/country_spec_test.rb
stripe-2.0.0 test/stripe/country_spec_test.rb