Topic: rSpec and Mocha
Anyone out there using rSpec and mocha to mock/stub?
I've been playing around with mocha instead of rSpec's built-in system for mocking/stubbing, and I have just two quick questions:
What is the mocha equivalent of:
@post = mock_model(Post, :to_param => "1")
What is the moch equivalent of:
If anyone could help me out, I would really appreciate it.