Sha256: 0bcdda058a78c8b7485daa25d85712a42f4b031c03bad1d1136646a5c642bb3a

Contents?: true

Size: 593 Bytes

Versions: 12

Compression:

Stored size: 593 Bytes

Contents

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

module Stripe
  class ExchangeRateTest < Test::Unit::TestCase
    should "be listable" do
      list_rates = Stripe::ExchangeRate.list
      assert_requested :get, "#{Stripe.api_base}/v1/exchange_rates"
      assert list_rates.data.is_a?(Array)
      assert list_rates.data.first.is_a?(Stripe::ExchangeRate)
    end

    should "be retrievable" do
      rates = Stripe::ExchangeRate.retrieve("usd")
      assert_requested :get, "#{Stripe.api_base}/v1/exchange_rates/usd"
      assert rates.is_a?(Stripe::ExchangeRate)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
stripe-3.14.0 test/stripe/exchange_rate_test.rb
stripe-3.13.1 test/stripe/exchange_rate_test.rb
stripe-3.13.0 test/stripe/exchange_rate_test.rb
stripe-3.12.1 test/stripe/exchange_rate_test.rb
stripe-3.12.0 test/stripe/exchange_rate_test.rb
stripe-3.11.0 test/stripe/exchange_rate_test.rb
stripe-3.10.0 test/stripe/exchange_rate_test.rb
stripe-3.9.2 test/stripe/exchange_rate_test.rb
stripe-3.9.1 test/stripe/exchange_rate_test.rb
stripe-3.9.0 test/stripe/exchange_rate_test.rb
stripe-3.8.2 test/stripe/exchange_rate_test.rb
stripe-3.8.1 test/stripe/exchange_rate_test.rb