Sha256: a72efc0456a9e14b60a7e219b2be4a1f655715eb6cf319052eb610d52ad2f4c9
Contents?: true
Size: 355 Bytes
Versions: 4
Compression:
Stored size: 355 Bytes
Contents
require 'cases/helper' require 'models/artist' class HasManyIntegerAssociationTest < ActiveRecord::TestCase fixtures :labels fixtures :artists def test_association_find label = labels(:def_jam) artists = label.artists assert_equal 4, artists.size artists.each do |artist| assert artist.instance_of?(Artist) end end end
Version data entries
4 entries across 4 versions & 1 rubygems