I have a Rails 3 app that I am testing with RSpec. I have a controller using external class MustMock as
class FooController < ApplicationController
def myaction
mockme = MustMock.new
@foobar = mockme.do_something
end
end
How can I best mock the instance of MustMock in my controller spec?
1 Answer