spec_helper.rb 550 B

123456789101112131415161718192021222324
  1. # encoding: utf-8
  2. $TESTING=true
  3. $:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
  4. $:.unshift File.expand_path(File.join(File.dirname(__FILE__)))
  5. require 'warden'
  6. require 'rubygems'
  7. require 'rack'
  8. Dir[File.join(File.dirname(__FILE__), "helpers", "**/*.rb")].each do |f|
  9. require f
  10. end
  11. RSpec.configure do |config|
  12. config.include(Warden::Spec::Helpers)
  13. config.include(Warden::Test::Helpers)
  14. def load_strategies
  15. Dir[File.join(File.dirname(__FILE__), "helpers", "strategies", "**/*.rb")].each do |f|
  16. load f
  17. end
  18. end
  19. end