]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/amf_controller_test.rb
Rail 3 has renamed fieldWithErrors to field_with_errors
[rails.git] / test / functional / amf_controller_test.rb
index 2c76dfc9cc29b5058c9a7d5404f886d73f7ebb04..1ed8ebf485cc365d8c5864028f18400b8d199789 100644 (file)
@@ -577,13 +577,8 @@ class AmfControllerTest < ActionController::TestCase
   # The result is a hash of message_ref => data.
   # The attribute @amf_result is initialised to this hash.
   def amf_parse_response
-    if @response.body.class.to_s == 'Proc'
-      res = StringIO.new()
-      @response.body.call @response, res
-      req = StringIO.new(res.string)
-    else
-      req = StringIO.new(@response.body)
-    end
+    req = StringIO.new(@response.body)
+
     req.read(2)   # version
 
     # parse through any headers