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

Version Path
gold-record-0.2.2 test/cases/associations/has_many_integer_assocation_test.rb
gold-record-0.2.1 test/cases/associations/has_many_integer_assocation_test.rb
gold-record-0.2.0 test/cases/associations/has_many_integer_assocation_test.rb
gold-record-0.1.0 test/cases/associations/has_many_integer_assocation_test.rb