Sha256: c0d8102964167ce92f8516f9cb9245109e421aaac180a1e68e051ad590ffa90f
Contents?: true
Size: 871 Bytes
Versions: 1
Compression:
Stored size: 871 Bytes
Contents
require 'core/arg_matching/arg_match_factory' require 'core/arg_matching/block_arg_matcher' require 'core/arg_matching/combined_arg_matcher' require 'core/arg_matching/matches' require 'core/arg_matching/regular_arg_matcher' require 'core/arg_behaviour' require 'core/arg_set' require 'core/class_swap' require 'core/class_swaps' require 'core/fake' require 'core/ignore_set' require 'core/method_stub' require 'singleton' class Object 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 include Fakes
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fakes-1.0.25 | lib/fakes.rb |