Sha256: 988c209b2f6cc57905e3dd397974ae42662953e2f936fe25545c28e7a46b96a1
Contents?: true
Size: 616 Bytes
Versions: 4
Compression:
Stored size: 616 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__),'..','test_helper')) class NewRelic::DelayedJobInstrumentationTest < Test::Unit::TestCase def test_skip_logging_if_no_logger_found Object.const_set('Delayed', Module.new) unless defined?(Delayed) ::Delayed.const_set('Worker', Class.new) NewRelic::Agent.stubs(:logger).raises(NoMethodError, 'tempoarily not allowed') NewRelic::Agent.stubs(:respond_to?).with(:logger).returns(false) assert DependencyDetection.detect! Object.class_eval { remove_const('Delayed') } end end
Version data entries
4 entries across 4 versions & 1 rubygems