Sha256: 10ef42610343fd1aa973562196dcee5ea531b81ac96c8e97b090fdc04319f370

Contents?: true

Size: 634 Bytes

Versions: 18

Compression:

Stored size: 634 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 'test/unit'
require 'newrelic_rpm'

class HelperTest < Test::Unit::TestCase

  def test_json_serializer_method
    obj = [
      99, 'luftballons',
      {
        'Hast du etwas' => 'Zeit für mich',
        'Dann singe ich' => {
          'ein lied' => 'für dich'
        }
      }
    ]
    copy = NewRelic.json_load( NewRelic.json_dump(obj) )

    assert( obj == copy )
  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
newrelic_rpm-3.6.6.147 test/new_relic/helper_test.rb
newrelic_rpm-3.6.5.130 test/new_relic/helper_test.rb
newrelic_rpm-3.6.4.122 test/new_relic/helper_test.rb
newrelic_rpm-3.6.4.113.beta test/new_relic/helper_test.rb
newrelic_rpm-3.6.3.111 test/new_relic/helper_test.rb
newrelic_rpm-3.6.3.106 test/new_relic/helper_test.rb
newrelic_rpm-3.6.3.105.beta test/new_relic/helper_test.rb
newrelic_rpm-3.6.3.104 test/new_relic/helper_test.rb
newrelic_rpm-3.6.3.103.beta test/new_relic/helper_test.rb
newrelic_rpm-3.6.2.96 test/new_relic/helper_test.rb
newrelic_rpm-3.6.2.90.beta test/new_relic/helper_test.rb
newrelic_rpm-3.6.1.88 test/new_relic/helper_test.rb
newrelic_rpm-3.6.1.87 test/new_relic/helper_test.rb
newrelic_rpm-3.6.1.86.beta test/new_relic/helper_test.rb
newrelic_rpm-3.6.1.85.beta test/new_relic/helper_test.rb
newrelic_rpm-3.6.0.83 test/new_relic/helper_test.rb
newrelic_rpm-3.6.0.78 test/new_relic/helper_test.rb
newrelic_rpm-3.6.0.74.beta test/new_relic/helper_test.rb