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
backlog-0.5.5 vendor/rails/activerecord/test/association_inheritance_reload.rb
backlog-0.5.7 vendor/rails/activerecord/test/association_inheritance_reload.rb
backlog-0.5.8 vendor/rails/activerecord/test/association_inheritance_reload.rb
backlog-0.5.9 vendor/rails/activerecord/test/association_inheritance_reload.rb
backlog-0.6.2 vendor/rails/activerecord/test/association_inheritance_reload.rb
backlog-0.6.0 vendor/rails/activerecord/test/association_inheritance_reload.rb
backlog-0.6.1 vendor/rails/activerecord/test/association_inheritance_reload.rb
backlog-0.6.5 vendor/rails/activerecord/test/association_inheritance_reload.rb
backlog-0.6.4 vendor/rails/activerecord/test/association_inheritance_reload.rb
backlog-0.6.3 vendor/rails/activerecord/test/association_inheritance_reload.rb
backlog-0.6.6 vendor/rails/activerecord/test/association_inheritance_reload.rb
backlog-0.7.0 vendor/rails/activerecord/test/association_inheritance_reload.rb
backlog-0.7.1 vendor/rails/activerecord/test/association_inheritance_reload.rb
backlog-0.7.10 vendor/rails/activerecord/test/association_inheritance_reload.rb
backlog-0.7.11 vendor/rails/activerecord/test/association_inheritance_reload.rb
backlog-0.7.12 vendor/rails/activerecord/test/association_inheritance_reload.rb
backlog-0.7.2 vendor/rails/activerecord/test/association_inheritance_reload.rb
backlog-0.7.3 vendor/rails/activerecord/test/association_inheritance_reload.rb
backlog-0.7.4 vendor/rails/activerecord/test/association_inheritance_reload.rb
backlog-0.7.5 vendor/rails/activerecord/test/association_inheritance_reload.rb