Sha256: db6497e5113625646891b1dfd5c66b138b07f9cca9e848b62051db4340fd2309

Contents?: true

Size: 534 Bytes

Versions: 7

Compression:

Stored size: 534 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(make_response(make_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

7 entries across 7 versions & 1 rubygems

Version Path
stripe-1.27.2 test/stripe/list_object_test.rb
stripe-1.27.1 test/stripe/list_object_test.rb
stripe-1.27.0 test/stripe/list_object_test.rb
stripe-1.26.0 test/stripe/list_object_test.rb
stripe-1.25.0 test/stripe/list_object_test.rb
stripe-1.24.0 test/stripe/list_object_test.rb
stripe-1.23.0 test/stripe/list_object_test.rb