From ef5049179d2803f1bcdd91278457c3b474a9064a Mon Sep 17 00:00:00 2001 From: Chris Lloyd Date: Thu, 11 Dec 2008 15:32:34 +1100 Subject: [PATCH] Test for teapot status code to ensure Quality Deliverables. --- actionpack/test/controller/render_test.rb | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb index c5496a9..11ca836 100644 --- a/actionpack/test/controller/render_test.rb +++ b/actionpack/test/controller/render_test.rb @@ -1156,6 +1156,12 @@ class RenderTest < ActionController::TestCase assert_response status end end + + def test_head_is_a_teapot + get :head_with_symbolic_status, :status => 'i_am_a_teapot' + assert_equal 418, @response.response_code + assert_response 418 + end def test_head_with_integer_status ActionController::StatusCodes::STATUS_CODES.each do |code, message| -- 1.6.0.1