lib/surrogate/rspec.rb in surrogate-0.6.3 vs lib/surrogate/rspec.rb in surrogate-0.6.4

- old
+ new

@@ -21,10 +21,14 @@ @mocks_loaded = bool end end module Matchers + def substitute_for(original_class, options={}) + SubstitutionMatcher.new original_class, options + end + def have_been_told_to(method_name) VerbMatcher.new method_name end def told_to(method_name) @@ -63,10 +67,10 @@ alias was_not should_not end end end -require 'surrogate/rspec/substitute_for' +require 'surrogate/rspec/substitution_matcher' require 'surrogate/rspec/predicate_matcher' require 'surrogate/rspec/noun_matcher' require 'surrogate/rspec/initialization_matcher' require 'surrogate/rspec/verb_matcher'