Forum: Ruby on Rails Testing ActionController::Streaming

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
List R. (Guest)
on 2005-12-18 03:37
Rails has a powerful ActionController::Streaming method, but it's quite
hard to set up unit tests for it.

assert_equal 'BINARY DATA', @response.body

won't work, as .body is a Proc.

How can I test that the correct data is served?
This topic is locked and can not be replied to.