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