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