Hi:
I was wondering if there was a way to stub the publish_to method so I don't need to have Faye running during the tests. I've tried doing ApplicationHelper.stubs(:publish_to).returns(true) and PrivatePub::ViewHelpers::stubs(:publish_to).returns(true) but it doesn't work.
Hi: I was wondering if there was a way to stub the publish_to method so I don't need to have Faye running during the tests. I've tried doing
ApplicationHelper.stubs(:publish_to).returns(true)
andPrivatePub::ViewHelpers::stubs(:publish_to).returns(true)
but it doesn't work.Any help would be appreciated :D