Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 3b8fce7b52819a8ccbad657a776854ab74b708e8 1 parent 518540a
@NZKoz NZKoz authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  actionpack/lib/action_controller/test_process.rb
View
3  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
Please sign in to comment.
Something went wrong with that request. Please try again.