search for: uses_test_plug

Displaying 1 result from an estimated 1 matches for "uses_test_plug".

2006 Mar 28
0
How to set session variable in plug-ins
...error. It fails in the line of assignment "session[:aaa_uid] = uid" with "Symbol as array index" error. module Legacy module Rails #:nodoc: module Test #:nodoc: def self.included(base) base.extend(ClassMethods) end module ClassMethods def uses_test_plug(options = {}) class_eval do extend ::Legacy::Rails::Test::InstanceMethods end before_filter do |controller| set_aaa_uid("jdoe") end end end module InstanceMethods def set_aaa_uid(uid) s...