-
-
Save movstox/8bb593443e5729725505e06b7b67bea7 to your computer and use it in GitHub Desktop.
Revisions
-
joshuapinter renamed this gist
Mar 16, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
joshuapinter created this gist
Mar 16, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ if defined?(ActiveRecord::Base) && defined?(Authlogic) controller = ApplicationController.new require 'action_controller/test_case' controller.instance_variable_set(:@_request, ActionController::TestRequest.new) controller.instance_variable_set(:@_response, ActionController::TestResponse.new) Authlogic::Session::Base.controller = Authlogic::ControllerAdapters::RailsAdapter.new(controller) end UserSession.new( User.first )