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