diff options
author | Aaron Patterson <tenderlove@github.com> | 2019-01-22 09:28:08 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-22 09:28:08 -0800 |
commit | db4b77aca147ec3c7376d803fc6ccb14c9195352 (patch) | |
tree | e73fa5f4145cf294f983cb752cc49c8985616d48 /actionview/test | |
parent | e26f0658da7ff7e9382d6040fe76c087ff1791e4 (diff) | |
parent | 0f081611e6746ebbf17ffc13e119b24c9ad7aa73 (diff) | |
download | rails-db4b77aca147ec3c7376d803fc6ccb14c9195352.tar.gz rails-db4b77aca147ec3c7376d803fc6ccb14c9195352.tar.bz2 rails-db4b77aca147ec3c7376d803fc6ccb14c9195352.zip |
Merge pull request #34952 from rails/template-stuff
Template Handler Refactoring
Diffstat (limited to 'actionview/test')
-rw-r--r-- | actionview/test/abstract_unit.rb | 2 | ||||
-rw-r--r-- | actionview/test/template/template_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/actionview/test/abstract_unit.rb b/actionview/test/abstract_unit.rb index f90626ad9e..d71944e938 100644 --- a/actionview/test/abstract_unit.rb +++ b/actionview/test/abstract_unit.rb @@ -61,7 +61,7 @@ module RenderERBUtils ActionView::Template::Handlers::ERB, {}) - template.render(self, {}).strip + template.render(ActionView::Base.new, {}).strip end end diff --git a/actionview/test/template/template_test.rb b/actionview/test/template/template_test.rb index b348d1f17b..8257d97b7c 100644 --- a/actionview/test/template/template_test.rb +++ b/actionview/test/template/template_test.rb @@ -18,7 +18,7 @@ class TestERBTemplate < ActiveSupport::TestCase attr_accessor :formats end - class Context + class Context < ActionView::Base def initialize @output_buffer = "original" @virtual_path = nil |