Sha256: 8e08360dac37a2fdd1b514415e6301117071c16d5bc736bc1556cf67bc7a48a6
Contents?: true
Size: 738 Bytes
Versions: 9
Compression:
Stored size: 738 Bytes
Contents
require File.expand_path('../../test_helper', __FILE__) module Stripe class ApplicationFeeTest < Test::Unit::TestCase should "application fees should be listable" do @mock.expects(:get).once.returns(make_response(make_application_fee_array)) fees = Stripe::ApplicationFee.all assert fees.data.kind_of? Array fees.each do |fee| assert fee.kind_of?(Stripe::ApplicationFee) end end should "application fees should be refundable" do @mock.expects(:get).never @mock.expects(:post).once.returns(make_response({:id => "fee_test_fee", :refunded => true})) fee = Stripe::ApplicationFee.new("test_application_fee") fee.refund assert fee.refunded end end end
Version data entries
9 entries across 9 versions & 1 rubygems