diff options
author | Chris Salzberg <chris@dejimata.com> | 2019-04-14 16:53:51 +0900 |
---|---|---|
committer | Chris Salzberg <chris@dejimata.com> | 2019-04-14 17:21:49 +0900 |
commit | 2e27801145954bb7754a59a8dc55134973b1518f (patch) | |
tree | 29ee1300b9949fb175ae5f0c5cfc90eee46f06a0 /railties/test/commands/db_system_change_test.rb | |
parent | 98d4a68a80468429f1da5414772ee6644975a04f (diff) | |
download | rails-2e27801145954bb7754a59a8dc55134973b1518f.tar.gz rails-2e27801145954bb7754a59a8dc55134973b1518f.tar.bz2 rails-2e27801145954bb7754a59a8dc55134973b1518f.zip |
Ensure multiple anonymous modules are not included into Topic in tests
Each acceptance validator applied to a model class includes an instance
of a module builder (LazilyDefineAttributes) into that class. In tests,
if the original model class is not subclassed, these modules pile up and
cannot be removed, potentially leading to flakey specs and false
positive/negatives.
To avoid this, always use subclasses in tests whose names (constants)
can be removed when the test is done.
Diffstat (limited to 'railties/test/commands/db_system_change_test.rb')
0 files changed, 0 insertions, 0 deletions