test/test_helper.rb in authpds-nyu-0.0.7 vs test/test_helper.rb in authpds-nyu-0.0.8

- old
+ new

@@ -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 = 'AQIC5wM2LY4SfcwFgz4BiWlHd1XVs6_wwHYAti2Wn-C9o18.*AAJTSQACMDIAAlNLAAk4OTU0ODMzNDIAAlMxAAIwMQ..*' + VALID_OPENSSO_FOR_NYU = 'AQIC5wM2LY4Sfcz_O7UA1U1KruO_dMKGYQQKYhZNqDgeEPI.*AAJTSQACMDIAAlNLAAstMTMwMzI0MzkzMwACUzEAAjAx*' INVALID_OPENSSO = "Invalid" - VALID_PDS_HANDLE_FOR_NEW_NYU = '83201295456116368349190324314' + VALID_PDS_HANDLE_FOR_NEW_NYU = '293201211510129623735547952389' 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" @@ -65,17 +65,18 @@ end include Authpds::Controllers::AuthpdsController def url_for(options={}) - return "http://railsapp.library.nyu.edu/validate?return_url=#{options[:return_url]}" + 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 "http://railsapp.library.nyu.edu/validate?return_url=#{options[:return_url]}" + return "#{root_url}/validate?return_url=#{options[:return_url]}" end def performed? false end \ No newline at end of file