Hi,
Is it possible to stub out a helper for development?
I've got a (view) helper that renders a partial and runs all kind of javascript. But for dev purposes I'd like it to return some hardcoded html. I'm not having any success stubbing the helper out. Something like...
test/mocks/development/helper_stub.rb
require 'application_helper' class ApplicationController < ActionController::Base def my_helper "<div>Hard-coded stuff</div>" end end
Can this be done? Thanks, --Trevor