Sha256: 71909382f868fbf073f1f09f9a6f2d94103f658cc340701b341616093dceece9

Contents?: true

Size: 506 Bytes

Versions: 3

Compression:

Stored size: 506 Bytes

Contents

require 'bacon'
require 'muack'

Bacon.summary_on_exit
Bacon::Context.__send__(:include, Muack::API)

Obj = Object.new
Str = 'Moo'
def Obj.inspect
  'obj'
end
def Obj.private
  'pri'
end
def Obj.aloha a=0, b=1
  [a, b]
end
Obj.singleton_class.__send__(:private, :private)

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

3 entries across 3 versions & 1 rubygems

Version Path
muack-1.1.1 lib/muack/test.rb
muack-1.1.0 lib/muack/test.rb
muack-1.0.4 lib/muack/test.rb