Sha256: d45cfca5d6d6f68a48ad212b11f0803536e5e655584e08f70750851cea3eff1b

Contents?: true

Size: 599 Bytes

Versions: 8

Compression:

Stored size: 599 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

8 entries across 8 versions & 1 rubygems

Version Path
jstorimer-deep-test-2.0.0 sample_rails_project/vendor/rails/activerecord/test/association_inheritance_reload.rb
jstorimer-deep-test-1.4.0 sample_rails_project/vendor/rails/activerecord/test/association_inheritance_reload.rb
jstorimer-deep-test-1.3.0 sample_rails_project/vendor/rails/activerecord/test/association_inheritance_reload.rb
jstorimer-deep-test-1.2.0 sample_rails_project/vendor/rails/activerecord/test/association_inheritance_reload.rb
jstorimer-deep-test-1.1.0 sample_rails_project/vendor/rails/activerecord/test/association_inheritance_reload.rb
jstorimer-deep-test-1.0.0 sample_rails_project/vendor/rails/activerecord/test/association_inheritance_reload.rb
jstorimer-deep-test-0.2.0 sample_rails_project/vendor/rails/activerecord/test/association_inheritance_reload.rb
jstorimer-deep-test-0.1.0 sample_rails_project/vendor/rails/activerecord/test/association_inheritance_reload.rb