diff options
author | Frederick Cheung <frederick.cheung@gmail.com> | 2008-12-21 02:11:39 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-12-21 02:24:22 +0000 |
commit | 606cd61b9a2a710a27c2e482b5dace100cce9779 (patch) | |
tree | 8fc86e22eb1807567eed68fb089da75e23e12487 /actionpack/test | |
parent | 75a133f92ff7e27b83032babf829d8a58803bb3c (diff) | |
download | rails-606cd61b9a2a710a27c2e482b5dace100cce9779.tar.gz rails-606cd61b9a2a710a27c2e482b5dace100cce9779.tar.bz2 rails-606cd61b9a2a710a27c2e482b5dace100cce9779.zip |
Fix Mime::Type#=~ not using Regexp.quote
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/mime_type_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/test/controller/mime_type_test.rb b/actionpack/test/controller/mime_type_test.rb index 9c4416ecf0..c7faa621d9 100644 --- a/actionpack/test/controller/mime_type_test.rb +++ b/actionpack/test/controller/mime_type_test.rb @@ -88,5 +88,6 @@ class MimeTypeTest < Test::Unit::TestCase assert Mime::JS !~ "text/html" assert !(Mime::JS !~ "text/javascript") assert !(Mime::JS !~ "application/javascript") + assert Mime::HTML =~ 'application/xhtml+xml' end end |