Sha256: d4eaad6d8b4b07751a8986faa41caaea43d4f9aa3149f8b79053a46d0c3af74f
Contents?: true
Size: 652 Bytes
Versions: 96
Compression:
Stored size: 652 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'test_helper')) require 'new_relic/transaction_sample/fake_segment' class NewRelic::TransactionSample::FakeSegmentTest < Test::Unit::TestCase def test_fake_segment_creation assert_nothing_raised do NewRelic::TransactionSample::FakeSegment.new(0.1, 'Custom/test/metric', nil) end end def test_parent_segment # should be public in this class, but not in the parent class s = NewRelic::TransactionSample::FakeSegment.new(0.1, 'Custom/test/metric', nil) s.parent_segment = 'foo' assert_equal('foo', s.instance_eval { @parent_segment } ) end end
Version data entries
96 entries across 96 versions & 5 rubygems