Sha256: 63375c6b64aafeb499ddff3e722f772438c98874f9af557a7ae86f0dcbd4b36a
Contents?: true
Size: 436 Bytes
Versions: 5
Compression:
Stored size: 436 Bytes
Contents
module Fakes def fake(invocations = {}) item = Fakes::Fake.new invocations.each{|method,return_value| item.stub(method).and_return(return_value)} item end def arg_match return Fakes::Matches end def fake_class(klass,invocations = {}) item = fake(invocations) Fakes::ClassSwaps.instance.add_fake_for(klass,item) item end def reset_fake_classes Fakes::ClassSwaps.instance.reset end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
fakes-1.1.0 | lib/fakes/fakes.rb |
fakes-1.0.9 | lib/fakes/fakes.rb |
fakes-1.0.8 | lib/fakes/fakes.rb |
fakes-1.0.7 | lib/fakes/fakes.rb |
fakes-1.0.6 | lib/fakes/fakes.rb |