Sha256: be6ec8d5f0d07b4795bd5c38c3014220f4a280202972af23b36e43ddb4041b77
Contents?: true
Size: 560 Bytes
Versions: 4
Compression:
Stored size: 560 Bytes
Contents
require 'cases/helper' require 'models/record_store' require 'models/label' class HabtmIntegerToIntegerAssociationTest < ActiveRecord::TestCase fixtures :record_stores fixtures :labels def test_association_find record_store = record_stores(:amoeba) labels = record_store.labels assert_equal 4, labels.size labels.each do |labels| assert labels.instance_of?(Label) end end def test_empty_assocation_find record_store = record_stores(:tower) labels = record_store.labels assert_equal 0, labels.size end end
Version data entries
4 entries across 4 versions & 1 rubygems