Sha256: cd3f9fb30c7f49ba8f156871135d869f3468097c815a3b807bb2e94e74258c12

Contents?: true

Size: 282 Bytes

Versions: 4

Compression:

Stored size: 282 Bytes

Contents

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

class BelongsToIntegerAssociationTest < ActiveRecord::TestCase
  fixtures :labels
  fixtures :artists

  def test_association_find
    artist = artists(:beatles)
    label = labels(:emi)
    assert_equal label, artist.label
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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