Sha256: 4133952c79057e7a25c08c4f4e9946e67bed5cb132f7da93be194610ff5aa7c0
Contents?: true
Size: 739 Bytes
Versions: 7
Compression:
Stored size: 739 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.list 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
7 entries across 7 versions & 1 rubygems