lib/bogus/mocking_dsl.rb in bogus-0.1.0 vs lib/bogus/mocking_dsl.rb in bogus-0.1.1
- old
+ new
@@ -26,9 +26,17 @@
def any_args
Bogus::AnyArgs
end
+ def with(&block)
+ Bogus::WithArguments.new(&block)
+ end
+
+ def any(klass)
+ Bogus::SameClass.new(klass)
+ end
+
def anything
Bogus::Anything
end
end
end