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