Sha256: fab684372ec86c2a2f7af5a2110adebd4c0bbb879ef305b3785655e521d89344
Contents?: true
Size: 552 Bytes
Versions: 23
Compression:
Stored size: 552 Bytes
Contents
#!/usr/bin/env ruby # encoding: UTF-8 require File.expand_path('../test_helper', __FILE__) class AbstractPrinterTest < TestCase def setup @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
23 entries across 23 versions & 1 rubygems