Sha256: 37b3596f9ffbcd5876f29f3771eeb14229605868ad58fa1d359532aba36f75ff

Contents?: true

Size: 348 Bytes

Versions: 4

Compression:

Stored size: 348 Bytes

Contents

require 'cases/helper'
require 'models/artist'

class HasManyUuidAssociationTest < ActiveRecord::TestCase
  fixtures :artists
  fixtures :albums

  def test_association_find
    artist = artists(:beatles)
    albums = artist.albums
    assert_equal 3, albums.size
    albums.each do |album|
      assert album.instance_of?(Album)
    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_uuid_association_test.rb
gold-record-0.2.1 test/cases/associations/has_many_uuid_association_test.rb
gold-record-0.2.0 test/cases/associations/has_many_uuid_association_test.rb
gold-record-0.1.0 test/cases/associations/has_many_uuid_association_test.rb