Sha256: 4fb6574de1334299d2334ae607accf4c0b10fc9e0f6a435a7276dc484b352357
Contents?: true
Size: 563 Bytes
Versions: 12
Compression:
Stored size: 563 Bytes
Contents
#!/usr/bin/env ruby # encoding: UTF-8 require File.expand_path('../test_helper', __FILE__) class AbstractPrinterTest < TestCase def setup super @result = {} @printer = RubyProf::AbstractPrinter.new(@result) @options = {} @printer.setup_options(@options) end private def with_const_stubbed(name, value) old_verbose, $VERBOSE = $VERBOSE, nil old_value = Object.const_get(name) Object.const_set(name, value) yield Object.const_set(name, old_value) $VERBOSE = old_verbose end end
Version data entries
12 entries across 12 versions & 2 rubygems