Sha256: 2bdacceb31b87b74e06c4a7078ef20bd5c36cda43b1f33542f5d0564e7649966
Contents?: true
Size: 900 Bytes
Versions: 4
Compression:
Stored size: 900 Bytes
Contents
require 'pork/auto' require 'muack' Pork::Suite.include(Muack::API) Str = String.new('Moo') class Cls def inspect 'obj' end def aloha a=0, b=1 [a, b] end def bonjour a: 0, b: 1 [a, b] end def ciao h={a: 0, b: 1} h.values_at(:a, :b) end module Prepend def prepend_aloha a=0, b=1 [a, b] end def prepend_bonjour a: 0, b: 1 [a, b] end def prepend_ciao h={a: 0, b: 1} h.values_at(:a, :b) end end prepend Prepend end Obj = Cls.new class << Obj private def private 'pri' end def single_aloha a=0, b=1 [a, b] end def single_bonjour a: 0, b: 1 [a, b] end def single_ciao h={a: 0, b: 1} h.values_at(:a, :b) end 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 }
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
muack-1.7.0 | lib/muack/test.rb |
muack-1.6.0 | lib/muack/test.rb |
muack-1.5.1 | lib/muack/test.rb |
muack-1.5.0 | lib/muack/test.rb |