Sha256: 4443dc454e9273f20adabf1c25e15a1f0fb1c25c1fa09c1030cc77099fae89a3
Contents?: true
Size: 419 Bytes
Versions: 3
Compression:
Stored size: 419 Bytes
Contents
module Stubba class Stubba attr_accessor :stubba_methods def initialize self.stubba_methods = [] end def stub(method) unless stubba_methods.include?(method) method.stub stubba_methods.push method end end def unstub_all while stubba_methods.size > 0 method = stubba_methods.pop method.unstub end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mocha-0.1.2 | lib/stubba/stubba.rb |
mocha-0.1 | lib/stubba/stubba.rb |
mocha-0.1.1 | lib/stubba/stubba.rb |