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

Version Path
stripe-1.22.0 test/stripe/list_object_test.rb
stripe-1.21.0 test/stripe/list_object_test.rb
stripe-1.20.4 test/stripe/list_object_test.rb
stripe-1.20.3 test/stripe/list_object_test.rb
stripe-1.20.2 test/stripe/list_object_test.rb
stripe-1.20.1 test/stripe/list_object_test.rb
stripe-1.20.0 test/stripe/list_object_test.rb
stripe-1.19.0 test/stripe/list_object_test.rb
stripe-1.18.0 test/stripe/list_object_test.rb
stripe-1.17.3 test/stripe/list_object_test.rb
stripe-1.17.2 test/stripe/list_object_test.rb
stripe-1.17.1 test/stripe/list_object_test.rb
stripe-1.16.1 test/stripe/list_object_test.rb
stripe-1.16.0 test/stripe/list_object_test.rb
stripe-1.15.0 test/stripe/list_object_test.rb
stripe-1.14.0 test/stripe/list_object_test.rb
stripe-1.13.0 test/stripe/list_object_test.rb
stripe-1.12.0 test/stripe/list_object_test.rb
stripe-1.11.0 test/stripe/list_object_test.rb
stripe-1.10.1 test/stripe/list_object_test.rb