Forum: Ruby on Rails Testing ActionController::Streaming

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ccfe7d097475a32dc3ff78d6fc42c852?d=identicon&s=25 List Recv (lstrecv)
on 2005-12-18 02: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.