module Coffee
  module Rails
    module JsHook
      extend ActiveSupport::Concern

      included do
        no_tasks do
          def js_template(source, destination)
            template(source + '.coffee', destination + '.coffee')
          end
        end
      end
    end
  end
end

module Coffee
  module Rails
    module JsHook
      extend ActiveSupport::Concern

      included do
        no_tasks do
          redefine_method :js_template do |source, destination|
            template(source + '.coffee', destination + '.coffee')
          end
        end
      end
    end
  end
end

Fix js_template method redefined warning from Rails tests
Fix js_template method redefined warning from Rails tests
