Sha256: 7bc195929c04eee56462aad9a8fc734b82586c9816a9ee4af2b05f0da75b093d
Contents?: true
Size: 559 Bytes
Versions: 16
Compression:
Stored size: 559 Bytes
Contents
require File.expand_path('../../test_helper', __FILE__) module Paid class APIListTest < ::Test::Unit::TestCase context '#new / #initialize' do setup do @fake_resource = {:data => "fake-data"} @list = APIList.new(APIResource, [@fake_resource]) end should 'set the klass' do assert_equal(APIResource, @list.klass) end should 'convert the data to klass instances' do assert(@list.first.is_a?(APIResource)) assert_equal(@fake_resource, @list.first.json) end end end end
Version data entries
16 entries across 16 versions & 1 rubygems