Sha256: c9139c4573af4595dc8c338b28256321fb06a8c06786971c064e873403a0dd5e

Contents?: true

Size: 677 Bytes

Versions: 19

Compression:

Stored size: 677 Bytes

Contents

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

module Checkr
  class ApiListTest < Test::Unit::TestCase

    should 'have an object attribute' do
      assert(APIList.method_defined?(:object))
      assert(APIList.method_defined?(:object=))
    end

    should 'have an data attribute' do
      assert(APIList.method_defined?(:data))
      assert(APIList.method_defined?(:data=))
    end

    should 'be refreshable' do
      lambda = APIList.constructor(:MockResource)
      list = lambda.call({})
      list.construct(test_mock_resource_list)
      assert(list.length > 0)
      list.each do |mr|
        assert(mr.is_a?(MockResource))
      end
    end

  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
checkr-official-1.8.0 test/checkr/api_list_test.rb
checkr-official-1.7.1 test/checkr/api_list_test.rb
checkr-official-1.7 test/checkr/api_list_test.rb
checkr-official-1.6 test/checkr/api_list_test.rb
checkr-official-1.5.4 test/checkr/api_list_test.rb
checkr-official-1.5.3 test/checkr/api_list_test.rb
checkr-official-1.5.2 test/checkr/api_list_test.rb
checkr-official-1.5.1 test/checkr/api_list_test.rb
checkr-official-1.5.0 test/checkr/api_list_test.rb
checkr-official-1.4.0 test/checkr/api_list_test.rb
checkr-official-1.3.1 test/checkr/api_list_test.rb
checkr-official-1.2.1 test/checkr/api_list_test.rb
checkr-official-1.2.0 test/checkr/api_list_test.rb
checkr-official-1.1.2 test/checkr/api_list_test.rb
checkr-official-1.1.1 test/checkr/api_list_test.rb
checkr-official-1.1.0 test/checkr/api_list_test.rb
checkr-official-1.0.2 test/checkr/api_list_test.rb
checkr-official-1.0.1 test/checkr/api_list_test.rb
checkr-official-1.0.0 test/checkr/api_list_test.rb