Sha256: 55c37a5131a45e55416de1f8e1208635dfe40e40decf0666f01f7520bf69a13a

Contents?: true

Size: 194 Bytes

Versions: 3

Compression:

Stored size: 194 Bytes

Contents

class Object
  
  def replace_stubba(stubba, &block)
    original_stubba = $stubba
    begin
      $stubba = stubba
      block.call
    ensure
      $stubba = original_stubba
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mocha-0.1.1 test/stubba_replacer.rb
mocha-0.1 test/stubba_replacer.rb
mocha-0.1.2 test/stubba_replacer.rb