Sha256: 4a706e011f9646affb036aeef7a19478ff5255d6d9ea85c8858dc051c27cc688

Contents?: true

Size: 559 Bytes

Versions: 4

Compression:

Stored size: 559 Bytes

Contents

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

module Peakium
  class ListObjectTest < Test::Unit::TestCase
    should "be able to retrieve full lists given a listobject" do
      @mock.expects(:get).twice.returns(test_response(test_gateway_array))
      g = Peakium::Gateway.all
      assert g.kind_of?(Peakium::ListObject)
      assert_equal('/v1/gateways', g.endpoint_url)
      all = g.all
      assert all.kind_of?(Peakium::ListObject)
      assert_equal('/v1/gateways', all.endpoint_url)
      assert all.data.kind_of?(Array)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
peakium-0.1.4 test/peakium/list_object_test.rb
peakium-0.1.3 test/peakium/list_object_test.rb
peakium-0.1.2 test/peakium/list_object_test.rb
peakium-0.1.1 test/peakium/list_object_test.rb