diff options
author | Zuhao Wan <wanzuhao@gmail.com> | 2014-06-14 15:42:51 +0800 |
---|---|---|
committer | Zuhao Wan <wanzuhao@gmail.com> | 2014-06-14 15:42:51 +0800 |
commit | c0850784421ec451afe460014c988274db2c12fd (patch) | |
tree | 32a9860c242559c5c643f3608eaaa32c0e84531d /actionview | |
parent | cf67031546735651375b7df06bda6721ad57fbe2 (diff) | |
download | rails-c0850784421ec451afe460014c988274db2c12fd.tar.gz rails-c0850784421ec451afe460014c988274db2c12fd.tar.bz2 rails-c0850784421ec451afe460014c988274db2c12fd.zip |
Move cleanup into teardown, delete obsolete code.
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/test/template/compiled_templates_test.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/actionview/test/template/compiled_templates_test.rb b/actionview/test/template/compiled_templates_test.rb index 2336321f3e..b84aca6746 100644 --- a/actionview/test/template/compiled_templates_test.rb +++ b/actionview/test/template/compiled_templates_test.rb @@ -1,15 +1,8 @@ require 'abstract_unit' class CompiledTemplatesTest < ActiveSupport::TestCase - def setup - # Clean up any details key cached to expose failures - # that otherwise would appear just on isolated tests + teardown do ActionView::LookupContext::DetailsKey.clear - - @compiled_templates = ActionView::CompiledTemplates - @compiled_templates.instance_methods.each do |m| - @compiled_templates.send(:remove_method, m) if m =~ /^_render_template_/ - end end def test_template_gets_recompiled_when_using_different_keys_in_local_assigns |