diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-08-13 14:20:04 -0400 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-08-13 14:20:04 -0400 |
commit | 38a3fed404e5e4f5c03be6f5288848d6d4f5d98c (patch) | |
tree | 446dc7954c86db28eff3cc77d2716c752249a859 /actionpack/test | |
parent | 8f0541b702f023c3c0841a47747ba0c793fcbb17 (diff) | |
download | rails-38a3fed404e5e4f5c03be6f5288848d6d4f5d98c.tar.gz rails-38a3fed404e5e4f5c03be6f5288848d6d4f5d98c.tar.bz2 rails-38a3fed404e5e4f5c03be6f5288848d6d4f5d98c.zip |
push header merge down to a private method so that live responses can have their own header object
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/live_response_test.rb | 11 |
1 files changed, 11 insertions, 0 deletions
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 |