diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-05-07 15:04:49 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-05-07 15:04:49 +0200 |
commit | d27974d3fb38918d323dcce3ae439ef68b369b72 (patch) | |
tree | 0eefd110b7a48e0dce41fcb655d40e8ca7149319 /activemodel/test/cases/attribute_assignment_test.rb | |
parent | 8639795c9911a06ba168064309e032875450faf6 (diff) | |
download | rails-d27974d3fb38918d323dcce3ae439ef68b369b72.tar.gz rails-d27974d3fb38918d323dcce3ae439ef68b369b72.tar.bz2 rails-d27974d3fb38918d323dcce3ae439ef68b369b72.zip |
tests, extract helpers to modify global state.
Make sure that tests do not hardcode the default value.
For example `test_instantiation_doesnt_try_to_require_corresponding_file`
always restored the configuration to `true` regardless of what it's
original value was.
Extract a helper to make the global modification consistent across tests.
Diffstat (limited to 'activemodel/test/cases/attribute_assignment_test.rb')
0 files changed, 0 insertions, 0 deletions