Sha256: 89d3b94a610c3318732f4978508d7008767c45ee6e432cfaff14f8f531b2e43e
Contents?: true
Size: 468 Bytes
Versions: 25
Compression:
Stored size: 468 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__),'..','..','test_helper')) require 'ostruct' class NewRelic::Agent::TransactionInfoTest < Test::Unit::TestCase def setup @request = OpenStruct.new(:cookies => {'NRAGENT' => 'tk=1234<tag>evil</tag>5678'}) end def test_get_token_gets_sanitized_token_from_cookie assert_equal('1234<tag>evil</tag>5678', NewRelic::Agent::TransactionInfo.get_token(@request)) end end
Version data entries
25 entries across 25 versions & 4 rubygems