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
2009-12-21 21:10:23 +01:00

21 lines
No EOL
562 B
Ruby

require 'rubygems'
ENV["RAILS_ENV"] = "test"
DEVISE_ORM = (ENV["DEVISE_ORM"] || :active_record).to_sym
puts "\n==> Devise.orm = #{DEVISE_ORM.inspect}"
require File.join(File.dirname(__FILE__), 'orm', DEVISE_ORM.to_s)
require 'webrat'
require 'mocha'
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
ActionMailer::Base.delivery_method = :test
ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.default_url_options[:host] = 'test.com'
Webrat.configure do |config|
config.mode = :rails
config.open_error_files = false
end