Rspec-mocks has expect(some_object).to receive(:some_method).and_call_original
. Can I do this with Mocha, and if so, how? some_object.expects(:some_method)....
...what?
相关问题
- How to specify memcache server to Rack::Session::M
- Why am I getting a “C compiler cannot create execu
- reference to a method?
- ruby 1.9 wrong file encoding on windows
- gem cleanup shows error: Unable to uninstall bundl
相关文章
- Ruby using wrong version of openssl
- Difference between Thread#run and Thread#wakeup?
- how to call a active record named scope with a str
- “No explicit conversion of Symbol into String” for
- Segmentation fault with ruby 2.0.0p247 leading to
- How to detect if an element exists in Watir
- uninitialized constant Mysql2::Client::SECURE_CONN
- ruby - simplify string multiply concatenation
I'm fairly sure that there isn't a way to do this.
Looking through the source code, there's a comment that mentions that the original method is completely replaced.