aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-06-16 13:44:51 -0700
committerYehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com>2009-06-16 13:44:51 -0700
commitdd58f4021da30af7f40ee139e7487b887cac44e9 (patch)
tree34cb015228013c437851a3a13d7059357e57db13 /actionpack/test
parent01a4bc84b8787df74d54147a0cf564df75e87970 (diff)
downloadrails-dd58f4021da30af7f40ee139e7487b887cac44e9.tar.gz
rails-dd58f4021da30af7f40ee139e7487b887cac44e9.tar.bz2
rails-dd58f4021da30af7f40ee139e7487b887cac44e9.zip
An exception is raised if a layout is missing only if the layout is missing for all mimes
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/mime_responds_test.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/actionpack/test/controller/mime_responds_test.rb b/actionpack/test/controller/mime_responds_test.rb
index 0c6822a5b1..04d6c4173a 100644
--- a/actionpack/test/controller/mime_responds_test.rb
+++ b/actionpack/test/controller/mime_responds_test.rb
@@ -467,14 +467,6 @@ class MimeControllerTest < ActionController::TestCase
assert_equal '<html><div id="iphone">Hello iPhone future from iPhone!</div></html>', @response.body
assert_equal "text/html", @response.content_type
end
-
- def test_format_with_custom_response_type_and_request_headers_with_only_one_layout_present
- get :iphone_with_html_response_type_without_layout
- assert_equal '<html><div id="html_missing">Hello future from Firefox!</div></html>', @response.body
-
- @request.accept = "text/iphone"
- assert_raise(ActionView::MissingTemplate) { get :iphone_with_html_response_type_without_layout }
- end
end
class AbstractPostController < ActionController::Base