summary refs log tree commit
diff options
context:
space:
mode:
authorMichael Fellinger <m.fellinger@gmail.com>2009-05-02 00:12:00 +0900
committerMichael Fellinger <m.fellinger@gmail.com>2009-05-02 00:12:00 +0900
commit815342a8e15db564b766f209ffb1e340233f064f (patch)
treeacdbeca71ce01e02e8043cebbe0f2e4b700f68c4
parentde58ed717d150999f6de5bfffdd18f9e83a40c02 (diff)
downloadrack-815342a8e15db564b766f209ffb1e340233f064f.tar.gz
Only try to get the rack.errors.string if possible so we don't violate the spec
-rw-r--r--lib/rack/mock.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/mock.rb b/lib/rack/mock.rb
index 079efac0..fdefb034 100644
--- a/lib/rack/mock.rb
+++ b/lib/rack/mock.rb
@@ -149,7 +149,7 @@ module Rack
       @body = ""
       body.each { |part| @body << part }
 
-      @errors = errors.string
+      @errors = errors.string if errors.respond_to?(:string)
     end
 
     # Status