Sha256: 7a3ae7acaf148fff032db4f1629f1b6ea6e89e485dd864ff5eab7e7e9c75453d
Contents?: true
Size: 651 Bytes
Versions: 36
Compression:
Stored size: 651 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) unless defined?(::Delayed::Worker) 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
36 entries across 36 versions & 3 rubygems