Sha256: bb6a889d47b0f7b45a25a316c4bc5961852273a90a72cbacd8f32971d4b149bc
Contents?: true
Size: 811 Bytes
Versions: 17
Compression:
Stored size: 811 Bytes
Contents
# encoding: utf-8 # This file is distributed under New Relic's license terms. # See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. 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
17 entries across 17 versions & 1 rubygems