1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00
heartcombo--devise/test/test_helper.rb

23 lines
663 B
Ruby
Raw Normal View History

ENV["RAILS_ENV"] = "test"
2009-12-21 09:29:58 -05:00
DEVISE_ORM = (ENV["DEVISE_ORM"] || :active_record).to_sym
2010-03-28 01:15:52 -04:00
$:.unshift File.dirname(__FILE__)
puts "\n==> Devise.orm = #{DEVISE_ORM.inspect}"
2010-03-28 01:15:52 -04:00
require "rails_app/config/environment"
require "rails/test_help"
require "orm/#{DEVISE_ORM}"
2010-03-28 01:15:52 -04:00
I18n.load_path << File.expand_path("../support/locale/en.yml", __FILE__)
require 'mocha'
Webrat.configure do |config|
config.mode = :rails
config.open_error_files = false
end
2010-10-14 18:44:21 -04:00
Devise::OmniAuth.test_mode!
2010-07-13 04:09:55 -04:00
# Add support to load paths so we can overwrite broken webrat setup
$:.unshift File.expand_path('../support', __FILE__)
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }