Sha256: 9a9486f9b761cd203dc01f68878f019f7172f8287bedb1030f0250cd70bb5c5b
Contents?: true
Size: 811 Bytes
Versions: 53
Compression:
Stored size: 811 Bytes
Contents
require 'test_helper' require 'scout_apm/context' class ContextText < Minitest::Test def test_ignore_nil_value context = ScoutApm::Context.new assert hash = context.add(:nil_key => nil, :org => 'org') assert_equal ({:org => 'org'}), hash end def test_ignore_nil_key context = ScoutApm::Context.new assert hash = context.add(nil => nil, :org => 'org') assert_equal ({:org => 'org'}), hash end def test_ignore_unsupported_value_type context = ScoutApm::Context.new assert hash = context.add(:array => [1,2,3,4], :org => 'org') assert_equal ({:org => 'org'}), hash end def test_ignore_unsupported_key_type context = ScoutApm::Context.new assert hash = context.add([1,2,3,4] => 'hey', :org => 'org') assert_equal ({:org => 'org'}), hash end end
Version data entries
53 entries across 53 versions & 1 rubygems