lib/surrogate/rspec.rb in surrogate-0.6.4 vs lib/surrogate/rspec.rb in surrogate-0.6.5
- old
+ new
@@ -21,9 +21,13 @@
@mocks_loaded = bool
end
end
module Matchers
+ def be_substitutable_for(original_class, options={})
+ SubstitutionMatcher.new original_class, options
+ end
+
def substitute_for(original_class, options={})
SubstitutionMatcher.new original_class, options
end
def have_been_told_to(method_name)