Sha256: b7d95455a61c7ba2c71c1cfbfa4ab469b49c3a1196d1f4d2a766fe3b783322d8
Contents?: true
Size: 533 Bytes
Versions: 23
Compression:
Stored size: 533 Bytes
Contents
require File.expand_path('../../test_helper', __FILE__) module Stripe class ListObjectTest < Test::Unit::TestCase should "be able to retrieve full lists given a listobject" do @mock.expects(:get).twice.returns(test_response(test_charge_array)) c = Stripe::Charge.all assert c.kind_of?(Stripe::ListObject) assert_equal('/v1/charges', c.url) all = c.all assert all.kind_of?(Stripe::ListObject) assert_equal('/v1/charges', all.url) assert all.data.kind_of?(Array) end end end
Version data entries
23 entries across 23 versions & 1 rubygems