Ответ 1
Да. Используйте "stub_everything()"
Документировано здесь: http://mocha.rubyforge.org/classes/Mocha/API.html#M000004.
Есть ли эквивалент Mocha Rspecs "mock(). as_null_object"?
Да. Используйте "stub_everything()"
Документировано здесь: http://mocha.rubyforge.org/classes/Mocha/API.html#M000004.