From 3b8fce7b52819a8ccbad657a776854ab74b708e8 Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Sat, 15 Oct 2005 18:39:19 +0000 Subject: [PATCH] reasoning behind the seemingly duplicated method git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2622 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/lib/action_controller/test_process.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb index 851494a89c..40d46661d8 100644 --- a/actionpack/lib/action_controller/test_process.rb +++ b/actionpack/lib/action_controller/test_process.rb @@ -125,7 +125,8 @@ class TestResponse < AbstractResponse #:nodoc: def response_code headers['Status'][0,3].to_i rescue 0 end - + + # returns a String to ensure compatibility with Net::HTTPResponse def code headers['Status'].to_s.split(' ')[0] end -- GitLab