From 38a3fed404e5e4f5c03be6f5288848d6d4f5d98c Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 13 Aug 2012 14:20:04 -0400 Subject: push header merge down to a private method so that live responses can have their own header object --- actionpack/test/dispatch/live_response_test.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'actionpack/test') diff --git a/actionpack/test/dispatch/live_response_test.rb b/actionpack/test/dispatch/live_response_test.rb index 153f58c42c..e16f23914b 100644 --- a/actionpack/test/dispatch/live_response_test.rb +++ b/actionpack/test/dispatch/live_response_test.rb @@ -14,6 +14,17 @@ module ActionController refute_equal header, @response.header end + def test_initialize_with_default_headers + r = Class.new(Live::Response) do + def self.default_headers + { 'omg' => 'g' } + end + end + + header = r.new.header + assert_kind_of(ActionController::Live::Response::Header, header) + end + def test_parallel latch = ActiveSupport::Concurrency::Latch.new -- cgit v1.2.3