aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/code_statistics_test.rb
diff options
context:
space:
mode:
authorChris Salzberg <chris@dejimata.com>2019-04-14 16:53:51 +0900
committerChris Salzberg <chris@dejimata.com>2019-04-14 17:21:49 +0900
commit2e27801145954bb7754a59a8dc55134973b1518f (patch)
tree29ee1300b9949fb175ae5f0c5cfc90eee46f06a0 /railties/test/code_statistics_test.rb
parent98d4a68a80468429f1da5414772ee6644975a04f (diff)
downloadrails-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/code_statistics_test.rb')
0 files changed, 0 insertions, 0 deletions