Skip to content
Browse files

Move cleanup into teardown, delete obsolete code.

  • Loading branch information...
1 parent cf67031 commit c0850784421ec451afe460014c988274db2c12fd @zuhao zuhao committed Jun 14, 2014
Showing with 1 addition and 8 deletions.
  1. +1 −8 actionview/test/template/compiled_templates_test.rb
View
9 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

0 comments on commit c085078

Please sign in to comment.
Something went wrong with that request. Please try again.