aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test
diff options
context:
space:
mode:
authorEileen M. Uchitelle <eileencodes@users.noreply.github.com>2019-03-19 09:22:16 -0400
committerGitHub <noreply@github.com>2019-03-19 09:22:16 -0400
commit7fe3c69331175a64f01ef64e7afab6d9236fbdbc (patch)
treed8df19bd0295fe46cd6f311ed47efea016e78bc6 /actionview/test
parent969a1416ebbb74ffb50617ae00029308e8d4f176 (diff)
parentb5e8942c95078945ff09a83b2fc03a0ae7e35953 (diff)
downloadrails-7fe3c69331175a64f01ef64e7afab6d9236fbdbc.tar.gz
rails-7fe3c69331175a64f01ef64e7afab6d9236fbdbc.tar.bz2
rails-7fe3c69331175a64f01ef64e7afab6d9236fbdbc.zip
Merge pull request #35604 from jhawthorn/validate_mime_types
Raise exception when building invalid mime type
Diffstat (limited to 'actionview/test')
-rw-r--r--actionview/test/template/html_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/test/template/html_test.rb b/actionview/test/template/html_test.rb
index c5fc8f906c..17f21cbbc5 100644
--- a/actionview/test/template/html_test.rb
+++ b/actionview/test/template/html_test.rb
@@ -8,9 +8,9 @@ class HTMLTest < ActiveSupport::TestCase
end
test "formats returns string for recognized MIME type when MIME does not have symbol" do
- foo = Mime::Type.lookup("foo")
+ foo = Mime::Type.lookup("text/foo")
assert_nil foo.to_sym
- assert_equal "foo", ActionView::Template::HTML.new("", foo).format
+ assert_equal "text/foo", ActionView::Template::HTML.new("", foo).format
end
test "formats returns string for unknown MIME type" do