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

Version Path
ruby-prof-1.5.0-x64-mingw-ucrt test/abstract_printer_test.rb
ruby-prof-1.5.0 test/abstract_printer_test.rb
ruby-prof-1.4.5-x64-mingw-ucrt test/abstract_printer_test.rb
ruby-prof-1.4.5 test/abstract_printer_test.rb
ruby-prof-1.4.4-x64-mingw-ucrt test/abstract_printer_test.rb
ruby-prof-1.4.4 test/abstract_printer_test.rb
ruby-prof-1.4.3-x64-mingw32 test/abstract_printer_test.rb
ruby-prof-1.4.3 test/abstract_printer_test.rb
ruby-prof-1.4.2-x64-mingw32 test/abstract_printer_test.rb
ruby-prof-1.4.2 test/abstract_printer_test.rb
ruby-prof-1.4.1-x64-mingw32 test/abstract_printer_test.rb
ruby-prof-1.4.1 test/abstract_printer_test.rb
ruby-prof-1.4.0-x64-mingw32 test/abstract_printer_test.rb
ruby-prof-1.4.0 test/abstract_printer_test.rb
ruby-prof-1.3.2 test/abstract_printer_test.rb
ruby-prof-1.3.1-x64-mingw32 test/abstract_printer_test.rb
ruby-prof-1.3.1 test/abstract_printer_test.rb
ruby-prof-1.3.0-x64-mingw32 test/abstract_printer_test.rb
ruby-prof-1.3.0 test/abstract_printer_test.rb
ruby-prof-1.2.0 test/abstract_printer_test.rb