lib/fakes.rb in fakes-1.0.24 vs lib/fakes.rb in fakes-1.0.25

- old
+ new

@@ -1,7 +1,5 @@ -require 'developwithpassion_arrays' - 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' @@ -12,10 +10,10 @@ require 'core/fake' require 'core/ignore_set' require 'core/method_stub' require 'singleton' -module Fakes +class Object def fake(invocations = {}) item = Fakes::Fake.new invocations.each{|method,return_value| item.stub(method).and_return(return_value)} item end