test/test_helper.rb in authpds-nyu-0.1.4 vs test/test_helper.rb in authpds-nyu-0.2.0
- old
+ new
@@ -27,12 +27,12 @@
t.string "persistence_token", :null => false
t.integer "login_count", :default => 0, :null => false
t.datetime "last_request_at"
t.datetime "current_login_at"
t.datetime "last_login_at"
- t.string "last_login_ip"
- t.string "current_login_ip"
+ t.string "last_login_ip"
+ t.string "current_login_ip"
t.text "user_attributes"
t.datetime "refreshed_at"
t.timestamps
end unless table_exists?(:users)
end
@@ -40,13 +40,13 @@
# Load support files
require File.dirname(__FILE__) + '/../lib/authpds-nyu'
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
class ActiveSupport::TestCase
- VALID_OPENSSO_FOR_NYU = 'AQIC5wM2LY4Sfcz_O7UA1U1KruO_dMKGYQQKYhZNqDgeEPI.*AAJTSQACMDIAAlNLAAstMTMwMzI0MzkzMwACUzEAAjAx*'
+ VALID_OPENSSO_FOR_NYU = 'AQIC5wM2LY4Sfcxc13Lmq865G281ghiEEXHBsnl6eVSC3hU.*AAJTSQACMDIAAlMxAAIwMQ..*'
INVALID_OPENSSO = "Invalid"
- VALID_PDS_HANDLE_FOR_NEW_NYU = '293201211510129623735547952389'
+ VALID_PDS_HANDLE_FOR_NEW_NYU = '911201215342297526743181020780'
VALID_PDS_HANDLE_FOR_EXISTING_NYU = '83201295456116368349190324314'
VALID_PDS_HANDLE_FOR_NEWSCHOOL = '272201212284614806184193096120278'
VALID_PDS_HANDLE_FOR_COOPER = '272201212284614806184193096120278'
INVALID_PDS_HANDLE = "Invalid"
SESSION_ID = "qwertyuiopasdfghjkllzxcvbnm1234567890"
@@ -63,26 +63,26 @@
class Authlogic::TestCase::MockController
def self.helper_method(*args)
end
include Authpds::Controllers::AuthpdsController
-
+
def url_for(options={})
return "#{root_url}/validate?return_url=#{options[:return_url]}"
end
-
+
def root_url
return "http://railsapp.library.nyu.edu"
end
def validate_url(options={})
return "#{root_url}/validate?return_url=#{options[:return_url]}"
end
-
+
def performed?
false
end
-
+
def redirect_to(*args)
# puts args.inspect
end
end
\ No newline at end of file