Sha256: 433f25ec9c4fc0038a21d0d196b1754253be4c27cb50eea26600ede1cdb8e804

Contents?: true

Size: 366 Bytes

Versions: 7

Compression:

Stored size: 366 Bytes

Contents

require 'bacon'
require 'muack'

Bacon.summary_on_exit
include Muack::API

Obj = Object.new
Str = 'Moo'
def Obj.inspect
  'obj'
end

Muack::EnsureReset = lambda{
  [Obj, Str].each do |o|
    o.methods.select{ |m|
      m.to_s.start_with?('__muack_mock') || m.to_s.start_with?('say')
    }.should.empty
  end
}

module Kernel
  def eq? rhs
    self == rhs
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
muack-0.7.3 lib/muack/test.rb
muack-0.7.2 lib/muack/test.rb
muack-0.7.1 lib/muack/test.rb
muack-0.7.0 lib/muack/test.rb
muack-0.5.2 lib/muack/test.rb
muack-0.5.1 lib/muack/test.rb
muack-0.5.0 lib/muack/test.rb