Sha256: 8a91c17500204be3e4116e557d37099dbc07d9158a683053a2a7950a4a496513

Contents?: true

Size: 657 Bytes

Versions: 38

Compression:

Stored size: 657 Bytes

Contents

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

module Maestrano
  module API
    class ListObjectTest < Test::Unit::TestCase
      include APITestHelper
      
      should "be able to retrieve full lists given a listobject" do
        @api_mock.expects(:get).twice.returns(test_response(test_account_bill_array))
        c = Maestrano::Account::Bill.all
        assert c.kind_of?(Maestrano::API::ListObject)
        assert_equal('account/bills', c.url)
        all = c.all
        assert all.kind_of?(Maestrano::API::ListObject)
        assert_equal('account/bills', all.url)
        assert all.data.kind_of?(Array)
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
maestrano-0.12.1 test/maestrano/api/list_object_test.rb
maestrano-0.12.0 test/maestrano/api/list_object_test.rb
maestrano-0.11.0 test/maestrano/api/list_object_test.rb
maestrano-0.10.0 test/maestrano/api/list_object_test.rb
maestrano-0.9.2 test/maestrano/api/list_object_test.rb
maestrano-0.9.1 test/maestrano/api/list_object_test.rb
maestrano-0.9.0 test/maestrano/api/list_object_test.rb
maestrano-ruby-test-0.8.3 test/maestrano/api/list_object_test.rb
maestrano-0.8.2 test/maestrano/api/list_object_test.rb
maestrano-0.8.1 test/maestrano/api/list_object_test.rb
maestrano-0.8.0 test/maestrano/api/list_object_test.rb
maestrano-0.7.0 test/maestrano/api/list_object_test.rb
maestrano-0.6.0 test/maestrano/api/list_object_test.rb
maestrano-0.5.0 test/maestrano/api/list_object_test.rb
maestrano-0.4.0 test/maestrano/api/list_object_test.rb
maestrano-0.3.0 test/maestrano/api/list_object_test.rb
maestrano-0.2.0 test/maestrano/api/list_object_test.rb
maestrano-0.1.0 test/maestrano/api/list_object_test.rb