diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2019-01-16 17:28:03 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2019-01-16 17:32:12 -0800 |
commit | c740ebdaf580c8c9772a9099c7a9c11ef3105f3a (patch) | |
tree | 9ccd5ae75d37678312c8ae3af8b05d25e545de38 /actionview/test/template | |
parent | ccfa01c36e79013881ffdb7ebe397cec733d15b2 (diff) | |
download | rails-c740ebdaf580c8c9772a9099c7a9c11ef3105f3a.tar.gz rails-c740ebdaf580c8c9772a9099c7a9c11ef3105f3a.tar.bz2 rails-c740ebdaf580c8c9772a9099c7a9c11ef3105f3a.zip |
Always evaluate views against an ActionView::Base
Methods created by views should always be evaluated against an AV::Base
instance. This way we can extract and refactor things in to classes.
Diffstat (limited to 'actionview/test/template')
-rw-r--r-- | actionview/test/template/template_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |