Sha256: 114707c8979fd3b6e2deeab6ceff59e0042a1acc5f3428bc9ff2f3f7f2dacf05
Contents?: true
Size: 893 Bytes
Versions: 3
Compression:
Stored size: 893 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')) class NewRelic::LanguageSupportTest < MiniTest::Unit::TestCase include ::NewRelic::TestHelpers::RuntimeDetection def test_object_space_usable_on_jruby_with_object_space_enabled return unless jruby? JRuby.objectspace = true assert_truthy NewRelic::LanguageSupport.object_space_usable? end def test_object_space_not_usable_on_jruby_with_object_space_disabled return unless jruby? JRuby.objectspace = false assert_falsy NewRelic::LanguageSupport.object_space_usable? end def test_object_space_not_usable_on_rubinius return unless rubinius? assert_falsy NewRelic::LanguageSupport.object_space_usable? end end
Version data entries
3 entries across 3 versions & 1 rubygems