Sha256: 836dcb692f34d41b05aa437f698ec55c711541274949ec9d0a7c73ca91759f3e

Contents?: true

Size: 545 Bytes

Versions: 9

Compression:

Stored size: 545 Bytes

Contents

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

module Paid
  class ListObjectTest < Test::Unit::TestCase
    should "be able to retrieve full lists given a listobject" do
      @mock.expects(:get).twice.returns(test_response(test_transaction_array))
      c = Paid::Transaction.all
      assert c.kind_of?(Paid::ListObject)
      assert_equal('/v0/transactions', c.url)
      all = c.all
      assert all.kind_of?(Paid::ListObject)
      assert_equal('/v0/transactions', all.url)
      assert all.data.kind_of?(Array)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
paid-0.1.0 test/paid/list_object_test.rb
paid-0.0.8 test/paid/list_object_test.rb
paid-0.0.7 test/paid/list_object_test.rb
paid-0.0.6 test/paid/list_object_test.rb
paid-0.0.5 test/paid/list_object_test.rb
paid-0.0.4 test/paid/list_object_test.rb
paid-0.0.3 test/paid/list_object_test.rb
paid-0.0.2 test/paid/list_object_test.rb
paid-0.0.1 test/paid/list_object_test.rb