diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2019-02-19 15:52:33 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2019-02-19 15:52:33 -0800 |
commit | 1c74752500db94396b9af739489d34ec79fd819b (patch) | |
tree | 19c1d9a73a12e3ab19478177dd3179b4b108bd18 /actionview/test | |
parent | f42f1d3155cdb787f90f489d6042ef64be4e6e5f (diff) | |
download | rails-1c74752500db94396b9af739489d34ec79fd819b.tar.gz rails-1c74752500db94396b9af739489d34ec79fd819b.tar.bz2 rails-1c74752500db94396b9af739489d34ec79fd819b.zip |
Deprecate LookupContext#rendered_format
We no longer depend on `rendered_format` side effects, so we can remove
this method now. 🎉
Diffstat (limited to 'actionview/test')
-rw-r--r-- | actionview/test/template/lookup_context_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/actionview/test/template/lookup_context_test.rb b/actionview/test/template/lookup_context_test.rb index 290f832794..5298afb694 100644 --- a/actionview/test/template/lookup_context_test.rb +++ b/actionview/test/template/lookup_context_test.rb @@ -17,6 +17,16 @@ class LookupContextTest < ActiveSupport::TestCase I18n.locale = :en end + test "rendered_format is deprecated" do + assert_deprecated do + @lookup_context.rendered_format = "foo" + end + + assert_deprecated do + assert_equal "foo", @lookup_context.rendered_format + end + end + test "allows to override default_formats with ActionView::Base.default_formats" do formats = ActionView::Base.default_formats ActionView::Base.default_formats = [:foo, :bar] |