test/test_helper.rb in authpds-nyu-0.2.1 vs test/test_helper.rb in authpds-nyu-0.2.2

- old
+ new

@@ -1,10 +1,11 @@ +require 'rubygems' require 'active_support/dependencies' require 'authpds' require 'authlogic/test_case' require "test/unit" -require 'rubygems' +require "vcr" require "active_record" require "active_record/fixtures" # Configure Rails Environment ENV["RAILS_ENV"] = "test" @@ -39,12 +40,17 @@ # Load support files require File.dirname(__FILE__) + '/../lib/authpds-nyu' Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } +VCR.configure do |c| + c.cassette_library_dir = 'test/vcr_cassettes' + c.hook_into :webmock # or :fakeweb +end + class ActiveSupport::TestCase - VALID_OPENSSO_FOR_NYU = 'AQIC5wM2LY4Sfcxc13Lmq865G281ghiEEXHBsnl6eVSC3hU.*AAJTSQACMDIAAlMxAAIwMQ..*' + VALID_OPENSSO_FOR_NYU = 'AQIC5wM2LY4SfczTdvNBIcB4pWXKQmc-G0dHh5xgWeS0A5I.*AAJTSQACMDIAAlMxAAIwNg..*' INVALID_OPENSSO = "Invalid" 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' @@ -81,8 +87,7 @@ def performed? false end def redirect_to(*args) - # puts args.inspect end end \ No newline at end of file