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? -- Posted via http://www.ruby-forum.com/.
Reasonably Related Threads
- Unit testing + instance variables
- [PATCH server] fixed expected status messages that were failing unit/functional tests.
- [PATCH server] fixed functional tests after recent controller refactoring and managed node controller fixes.
- some help with functional testing of nested routes
- Catching Exceptions in ActionController