diff options
author | Michael Koziarski <michael@koziarski.com> | 2005-10-15 18:39:19 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2005-10-15 18:39:19 +0000 |
commit | 3b8fce7b52819a8ccbad657a776854ab74b708e8 (patch) | |
tree | ccfa6e327f8c39ae37acbb023ecef1a6be232ad3 | |
parent | 518540a06734b56d3b56277bf79bb7df95f6980b (diff) | |
download | rails-3b8fce7b52819a8ccbad657a776854ab74b708e8.tar.gz rails-3b8fce7b52819a8ccbad657a776854ab74b708e8.tar.bz2 rails-3b8fce7b52819a8ccbad657a776854ab74b708e8.zip |
reasoning behind the seemingly duplicated method
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2622 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | actionpack/lib/action_controller/test_process.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ module ActionController #: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 |