diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-12-02 22:48:20 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-12-02 22:48:20 +0000 |
commit | 5410f2cb74737bd6d96c226230c2b9c2bfe1d80b (patch) | |
tree | fa98f0714273e73f2fcee6b7e7853c628502401a /actionpack/test | |
parent | 1ac4470da52e3ad4eee945e70f597ce7af7f0003 (diff) | |
download | rails-5410f2cb74737bd6d96c226230c2b9c2bfe1d80b.tar.gz rails-5410f2cb74737bd6d96c226230c2b9c2bfe1d80b.tar.bz2 rails-5410f2cb74737bd6d96c226230c2b9c2bfe1d80b.zip |
Added the option for extension aliases to mime type registration [DHH] Refactored default mime types to use the extension framework instead of just declaring themselves verbosely
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5663 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/mime_responds_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/controller/mime_responds_test.rb b/actionpack/test/controller/mime_responds_test.rb index d2cb4f1d84..1d7fdc0052 100644 --- a/actionpack/test/controller/mime_responds_test.rb +++ b/actionpack/test/controller/mime_responds_test.rb @@ -303,6 +303,11 @@ class MimeControllerTest < Test::Unit::TestCase get :html_xml_or_rss, :format => "rss" assert_equal "RSS", @response.body end + + def test_extension_synonyms + get :html_xml_or_rss, :format => "xhtml" + assert_equal "HTML", @response.body + end def test_render_action_for_html @controller.instance_eval do |