Sha256: 7b56d849f6b9b6d416a4016e08bc1637a123be1993de84df0faf5352c383407b

Contents?: true

Size: 288 Bytes

Versions: 4

Compression:

Stored size: 288 Bytes

Contents

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

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

  def test_association_find
    album = albums(:white_album)
    artist = artists(:beatles)
    assert_equal artist, album.artist
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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