Skip to content

Instantly share code, notes, and snippets.

@Bill Bill/gist:95498
Created Apr 14, 2009

Embed
What would you like to do?
module Spec
module Rails
class ControllerContext < Rails::Context
module ContextEvalInstanceMethods
def setup_extra
(class << @controller; self; end).class_eval do
include ControllerInstanceMethods
end
@controller.integrate_views! if @integrate_views
@controller.session = session
#extend the controller instance with simply_helpful modules
@controller.extend SimplyHelpful::RecordIdentificationHelper
@controller.class.helper SimplyHelpful::RecordIdentificationHelper, SimplyHelpful::RecordTagHelper
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.