diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-03-09 12:37:50 -0300 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-03-09 12:37:50 -0300 |
commit | 49e6d0a99c8ee63fe6dbbee9444eed8b5e802072 (patch) | |
tree | 19367685f3ebb6c875a4b683fb35c49075024e99 /actionpack/test/controller/log_subscriber_test.rb | |
parent | b165d73f2ccd421c9f3518ce9bf5bcb322440cb7 (diff) | |
parent | 2c5c1276a84692ba58f60c8ff5fdad744959b69a (diff) | |
download | rails-49e6d0a99c8ee63fe6dbbee9444eed8b5e802072.tar.gz rails-49e6d0a99c8ee63fe6dbbee9444eed8b5e802072.tar.bz2 rails-49e6d0a99c8ee63fe6dbbee9444eed8b5e802072.zip |
Merge pull request #24115 from garethson/instrumentation-headers
Pass headers through to payload for logging.
Diffstat (limited to 'actionpack/test/controller/log_subscriber_test.rb')
-rw-r--r-- | actionpack/test/controller/log_subscriber_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/controller/log_subscriber_test.rb b/actionpack/test/controller/log_subscriber_test.rb index 6ae33be3c8..57cf2dafdf 100644 --- a/actionpack/test/controller/log_subscriber_test.rb +++ b/actionpack/test/controller/log_subscriber_test.rb @@ -183,6 +183,12 @@ class ACLogSubscriberTest < ActionController::TestCase assert_equal "test_value", @controller.last_payload[:test_key] end + def test_process_action_headers + get :show + wait + assert_equal "Rails Testing", @controller.last_payload[:headers]['User-Agent'] + end + def test_process_action_with_filter_parameters @request.env["action_dispatch.parameter_filter"] = [:lifo, :amount] |