Permalink
Browse files

reasoning behind the seemingly duplicated method

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2622 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 518540a commit 3b8fce7b52819a8ccbad657a776854ab74b708e8 @NZKoz NZKoz committed Oct 15, 2005
Showing with 2 additions and 1 deletion.
  1. +2 −1 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

0 comments on commit 3b8fce7

Please sign in to comment.