diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-05-02 14:57:40 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-05-02 14:57:40 -0500 |
commit | a8b75c480fc9774252f5976dcf1a614079822e56 (patch) | |
tree | b2567b106a5a87472340bdeab54f4b1880fe06df /actionpack/lib/action_dispatch/http | |
parent | 3900f4007ee6463b8936af23c04017a900673866 (diff) | |
download | rails-a8b75c480fc9774252f5976dcf1a614079822e56.tar.gz rails-a8b75c480fc9774252f5976dcf1a614079822e56.tar.bz2 rails-a8b75c480fc9774252f5976dcf1a614079822e56.zip |
Functional test runner finalizes response just like the integration test runner. In both runners, the @response object will now behave the same.
Some functional tests will need to be updated if they are relying on preprocessed data on the response.
Diffstat (limited to 'actionpack/lib/action_dispatch/http')
-rw-r--r-- | actionpack/lib/action_dispatch/http/response.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/response.rb b/actionpack/lib/action_dispatch/http/response.rb index 2618e284fe..133b4f7335 100644 --- a/actionpack/lib/action_dispatch/http/response.rb +++ b/actionpack/lib/action_dispatch/http/response.rb @@ -185,7 +185,7 @@ module ActionDispatch # :nodoc: @writer = lambda { |x| callback.call(x) } @body.call(self, self) else - @body.each(&callback) + @body.each { |part| callback.call(part.to_s) } end @writer = callback |