Sha256: 7c5b98856432728b65a43d9d2d0cec46b57e1123ddfcc156fcacf99dda1b5ab0

Contents?: true

Size: 598 Bytes

Versions: 103

Compression:

Stored size: 598 Bytes

Contents

require 'abstract_unit'
require 'fixtures/company'

class AssociationInheritanceReloadTest < Test::Unit::TestCase
  fixtures :companies

  def test_set_attributes
    assert_equal ["errors.add_on_empty('name', \"can't be empty\")"], Firm.read_inheritable_attribute("validate"), "Second run"
    # ActiveRecord::Base.reset_column_information_and_inheritable_attributes_for_all_subclasses
    remove_subclass_of(ActiveRecord::Base)
    load 'fixtures/company.rb'
    assert_equal ["errors.add_on_empty('name', \"can't be empty\")"], Firm.read_inheritable_attribute("validate"), "Second run"
  end
end

Version data entries

103 entries across 103 versions & 6 rubygems

Version Path
activerecord-1.11.1 test/association_inheritance_reload.rb
activerecord-1.12.2 test/association_inheritance_reload.rb
activerecord-1.12.1 test/association_inheritance_reload.rb
activerecord-1.10.0 test/association_inheritance_reload.rb
activerecord-1.10.1 test/association_inheritance_reload.rb
activerecord-1.13.0 test/association_inheritance_reload.rb
activerecord-1.11.0 test/association_inheritance_reload.rb
activerecord-1.14.2 test/association_inheritance_reload.rb
activerecord-1.13.2 test/association_inheritance_reload.rb
activerecord-1.14.0 test/association_inheritance_reload.rb
activerecord-1.14.1 test/association_inheritance_reload.rb
activerecord-1.14.3 test/association_inheritance_reload.rb
activerecord-1.13.1 test/association_inheritance_reload.rb
activerecord-1.15.0 test/association_inheritance_reload.rb
activerecord-1.15.2 test/association_inheritance_reload.rb
activerecord-1.14.4 test/association_inheritance_reload.rb
activerecord-1.15.4 test/association_inheritance_reload.rb
activerecord-1.15.1 test/association_inheritance_reload.rb
activerecord-1.15.3 test/association_inheritance_reload.rb
activerecord-1.15.5 test/association_inheritance_reload.rb