stripe-ruby/test/stripe/application_fee_test.rb
Brandur 3f549fb5ad Port all tests over to OpenAPI
Follows the path established in 2d75c8f by porting the rest of
stripe-ruby's tests over to OpenAPI. There are a few other changes here
where I've removed some tests that are duplicated or don't make much
sense, or reorganized how we test certain things, but this commit is
largely the same migration operation applied in bulk a few dozen test
suites.
2017-02-14 12:17:37 -08:00

15 lines
429 B
Ruby

require File.expand_path('../../test_helper', __FILE__)
module Stripe
class ApplicationFeeTest < Test::Unit::TestCase
FIXTURE = API_FIXTURES.fetch(:platform_earning)
should "be listable" do
fees = Stripe::ApplicationFee.list
assert_requested :get, "#{Stripe.api_base}/v1/application_fees"
assert fees.data.kind_of?(Array)
assert fees.data[0].kind_of?(Stripe::ApplicationFee)
end
end
end