test/test_helper.rb in authpds-0.0.4 vs test/test_helper.rb in authpds-0.0.5

- old
+ new

@@ -39,11 +39,11 @@ # Load support files require File.dirname(__FILE__) + '/../lib/authpds' unless defined?(Authpds) Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } class ActiveSupport::TestCase - VALID_PDS_HANDLE_FOR_NYU = '132012112947113134742310506860' + VALID_PDS_HANDLE_FOR_NYU = '232012135435113217012644778009' VALID_PDS_HANDLE_FOR_NEWSCHOOL = '272201212284614806184193096120278' VALID_PDS_HANDLE_FOR_COOPER = '272201212284614806184193096120278' INVALID_PDS_HANDLE = "Invalid" SESSION_ID = "qwertyuiopasdfghjkllzxcvbnm1234567890" include ActiveRecord::TestFixtures @@ -70,9 +70,18 @@ end def performed? false end + + def request + @request ||= Authlogic::TestCase::MockRequest.new(self) + end + + def env + @env ||= {'REMOTE_ADDR' => "128.122.149.239"} + end end - - +class UserSessionsController < Authlogic::TestCase::MockController + include Authpds::Controllers::AuthpdsUserSessionsController +end