From 619e7c8db8b2339eae8f1f51eb2c1173808039cd Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Sun, 29 Jul 2012 19:46:36 -0700 Subject: make sure set_response! sets the correct response object --- actionpack/test/controller/live_stream_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'actionpack/test/controller') diff --git a/actionpack/test/controller/live_stream_test.rb b/actionpack/test/controller/live_stream_test.rb index 5bb37a271d..e5fb50fca4 100644 --- a/actionpack/test/controller/live_stream_test.rb +++ b/actionpack/test/controller/live_stream_test.rb @@ -53,6 +53,12 @@ module ActionController TestResponse.new end + def test_set_response! + @controller.set_response!(@request) + assert_kind_of(Live::Response, @controller.response) + assert_equal @request, @controller.response.request + end + def test_write_to_stream @controller = TestController.new get :basic_stream -- cgit v1.2.3