diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2012-08-25 01:20:51 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2012-08-28 11:19:36 +0200 |
commit | 582a7f459990487659886b90e54c22e055c65870 (patch) | |
tree | f878fec6bf0830709bf4a00e4de64d621d976eb2 /actionpack/test | |
parent | 3fb10fd4790841ab82c4f0697b5527b7d6a40c6c (diff) | |
download | rails-582a7f459990487659886b90e54c22e055c65870.tar.gz rails-582a7f459990487659886b90e54c22e055c65870.tar.bz2 rails-582a7f459990487659886b90e54c22e055c65870.zip |
Deprecate Template#mime_type
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/template/template_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/actionpack/test/template/template_test.rb b/actionpack/test/template/template_test.rb index 061f5bb53f..86ba5f3b4d 100644 --- a/actionpack/test/template/template_test.rb +++ b/actionpack/test/template/template_test.rb @@ -59,6 +59,13 @@ class TestERBTemplate < ActiveSupport::TestCase @context = Context.new end + def test_mime_type_is_deprecated + template = new_template + assert_deprecated 'Template#mime_type is deprecated and will be removed' do + template.mime_type + end + end + def test_basic_template @template = new_template assert_equal "Hello", render |