Sha256: 50d4d01f3e6ed7a8e56d463b5db0046c171578022514433f6d55dd050a4df7d6

Contents?: true

Size: 550 Bytes

Versions: 1

Compression:

Stored size: 550 Bytes

Contents

require File.expand_path('../../test_helper', __FILE__)

module Rainforest
  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 = Rainforest::Charge.all
      assert c.kind_of?(Rainforest::ListObject)
      assert_equal('/v1/charges', c.url)
      all = c.all
      assert all.kind_of?(Rainforest::ListObject)
      assert_equal('/v1/charges', all.url)
      assert all.data.kind_of?(Array)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rainforest-1.0.1 test/stripe/list_object_test.rb