test/test_helper.rb in authpds-0.2.0 vs test/test_helper.rb in authpds-0.2.1
- old
+ new
@@ -1,9 +1,10 @@
+require 'rubygems'
require 'authlogic'
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"
@@ -38,22 +39,27 @@
# Load support files
require File.dirname(__FILE__) + '/../lib/authpds'
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_PDS_HANDLE_FOR_NYU = '9112012142711297424383587031443'
- VALID_PDS_HANDLE_FOR_NEWSCHOOL = '272201212284614806184193096120278'
+ VALID_PDS_HANDLE_FOR_NYU = '12112012141859298424685706599355'
+ VALID_PDS_HANDLE_FOR_NEWSCHOOL = '12112012151951298522252282669924'
VALID_PDS_HANDLE_FOR_COOPER = '272201212284614806184193096120278'
INVALID_PDS_HANDLE = "Invalid"
SESSION_ID = "qwertyuiopasdfghjkllzxcvbnm1234567890"
include ActiveRecord::TestFixtures
include Authlogic::TestCase
self.fixture_path = File.dirname(__FILE__) + "/fixtures"
self.use_transactional_fixtures = false
self.use_instantiated_fixtures = false
self.pre_loaded_fixtures = false
- fixtures :all
+ fixtures :users
setup :activate_authlogic
end
class Authlogic::TestCase::MockController
def self.helper_method(*args)