Sha256: 6bcfa17bbe39a6994d768bdc8e88cb1f4d4a2f95c97b4aedf27a9ecae216a41b

Contents?: true

Size: 515 Bytes

Versions: 7

Compression:

Stored size: 515 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__),'..','test_helper'))

class NewRelic::Agent::NoticedErrorTest < Test::Unit::TestCase
  def test_to_collector_array
    time = Time.now
    error = NewRelic::NoticedError.new('path', {'key' => 'val'},
                                       Exception.new('test exception'), time)
    expected = [
      (time.to_f * 1000).round, 'path', 'test exception', 'Exception',
      {'key' => 'val'}
    ]
    assert_equal expected, error.to_collector_array
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
newrelic_rpm-3.5.4.34 test/new_relic/noticed_error_test.rb
newrelic_rpm-3.5.4.33 test/new_relic/noticed_error_test.rb
newrelic_rpm-3.5.4.31.beta test/new_relic/noticed_error_test.rb
newrelic_rpm-3.5.4.29.beta test/new_relic/noticed_error_test.rb
ghazel-newrelic_rpm-3.5.4 test/new_relic/noticed_error_test.rb
newrelic_rpm-3.5.3.25 test/new_relic/noticed_error_test.rb
newrelic_rpm-3.5.3.24 test/new_relic/noticed_error_test.rb