rails_plugins/rspec/lib/spec/mocks/methods.rb in picolena-0.1.5 vs rails_plugins/rspec/lib/spec/mocks/methods.rb in picolena-0.1.6
- old
+ new
@@ -6,18 +6,18 @@
end
def should_not_receive(sym, &block)
__mock_proxy.add_negative_message_expectation(caller(1)[0], sym.to_sym, &block)
end
-
+
def stub!(sym, opts={})
__mock_proxy.add_stub(caller(1)[0], sym.to_sym, opts)
end
-
+
def received_message?(sym, *args, &block) #:nodoc:
__mock_proxy.received_message?(sym.to_sym, *args, &block)
end
-
+
def rspec_verify #:nodoc:
__mock_proxy.verify
end
def rspec_reset #:nodoc: