Sha256: 22c5f066378f32a0f436f4bca6f5bb6ebad2c3b3bee9228345d69f17c1fadb3f

Contents?: true

Size: 521 Bytes

Versions: 13

Compression:

Stored size: 521 Bytes

Contents

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

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
payjp-0.0.16 test/payjp/list_object_test.rb
payjp-0.0.14 test/payjp/list_object_test.rb
payjp-0.0.13 test/payjp/list_object_test.rb
payjp-0.0.12 test/payjp/list_object_test.rb
payjp-0.0.10 test/payjp/list_object_test.rb
payjp-0.0.9 test/payjp/list_object_test.rb
payjp-0.0.8 test/payjp/list_object_test.rb
payjp-0.0.7 test/payjp/list_object_test.rb
payjp-0.0.6 test/payjp/list_object_test.rb
payjp-0.0.5 test/payjp/list_object_test.rb
payjp-0.0.4 test/payjp/list_object_test.rb
payjp-0.0.3 test/payjp/list_object_test.rb
payjp-0.0.2 test/payjp/list_object_test.rb