aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/schema_dumper_test.rb
diff options
context:
space:
mode:
authorChris Salzberg <chris@dejimata.com>2019-04-13 22:17:54 +0900
committerChris Salzberg <chris@dejimata.com>2019-04-13 22:20:56 +0900
commit42a8340aa8b68a2dafaf7d611ba889a807ec278f (patch)
tree8776078fded5f7b484310c216958c15aab8dc5b3 /activerecord/test/cases/schema_dumper_test.rb
parentcc6bff3daa4da4d2c6935761d0ab059201f772e2 (diff)
downloadrails-42a8340aa8b68a2dafaf7d611ba889a807ec278f.tar.gz
rails-42a8340aa8b68a2dafaf7d611ba889a807ec278f.tar.bz2
rails-42a8340aa8b68a2dafaf7d611ba889a807ec278f.zip
Add validation to subclass in tests to avoid polluting parent class
These two tests currently both define acceptance validators on the same class, Topic. This means that in either one test or the other, there are not one but *two* instances of the LazilyDefineAttributes module builder in the class' ancestors, which can result in unpredictable results. Subclassing Topic in each test avoids conflicts.
Diffstat (limited to 'activerecord/test/cases/schema_dumper_test.rb')
0 files changed, 0 insertions, 0 deletions