mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Move cleanup into teardown, delete obsolete code.
This commit is contained in:
parent
cf67031546
commit
c085078442
1 changed files with 1 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue