by Lin Jen-Shin (godfat)
DESCRIPTION:
Muack – Yet another mocking library.
Basically it’s an RR clone, but much faster under heavy use.
It’s 32x times faster (750s vs 23s) for running Rib tests.
INSTALLATION:
gem install muack
SYNOPSIS:
Basically it’s an RR clone. Let’s see a Bacon example.
require ‘bacon’
require ‘muack’
include Muack::API
describe ‘Hello’ do
before{ Muack.reset }
after { Muack.verify }
should ‘say world!’ do
str = ‘Hello’
mock(str).say(‘!’){ |arg| “World#{arg}” }
str.say(‘!’).should.equal ‘World!’
end
end
Please read the README for other SYNOPSIS.
Lin Jen-Shin (godfat) [email protected] wrote:
Basically it’s an [RR] clone. Let’s see a [Bacon] example.
Clearly, this is the follow to the previous pork shoulder, or else
you’re pulling our leg…
On Sat, Jun 29, 2013 at 9:53 AM, Tamara T. [email protected]
wrote:
Lin Jen-Shin (godfat) [email protected] wrote:
Basically it’s an [RR] clone. Let’s see a [Bacon] example.
Clearly, this is the follow to the previous pork shoulder, or else
you’re pulling our leg…
I have no idea which you’re referring to, could you point it for me?