Skip to content
Browse files

Merge pull request #15709 from zuhao/refactor_actionview_compiled_tem…

…plates_test

Move cleanup into teardown, delete obsolete code.
  • Loading branch information...
2 parents ce425e4 + c085078 commit dccf6da66bf4a63971e1f12b98cb1bb1fe5a9015 @senny senny committed Jun 18, 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 dccf6da

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