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

Version Path
wd_newrelic_rpm-3.5.8 test/new_relic/transaction_sample/fake_segment_test.rb
sundawg_newrelic_rpm-3.5.8.2 test/new_relic/transaction_sample/fake_segment_test.rb
sundawg_newrelic_rpm-3.5.8.1 test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.5.8.72 test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.5.8.70 test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.5.8.64.beta test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.5.7.59 test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.5.7.59.beta test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.5.7.58.beta test/new_relic/transaction_sample/fake_segment_test.rb
wd_newrelic_rpm-3.5.6 test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.5.7.57.beta test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.5.6.55 test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.5.6.48.beta test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.5.6.46.beta test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.5.6.42.beta test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.5.5.39.beta test/new_relic/transaction_sample/fake_segment_test.rb
wd_newrelic_rpm-3.5.5 test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.5.5.38 test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.5.5.540.dev test/new_relic/transaction_sample/fake_segment_test.rb
newrelic_rpm-3.5.4.35.beta test/new_relic/transaction_sample/fake_segment_test.rb