Sha256: ca115d6189d4325aca903538b2b8b69e1c5df82deec90eee1191d635a1f317be
Contents?: true
Size: 814 Bytes
Versions: 6
Compression:
Stored size: 814 Bytes
Contents
ENV['RAILS_ENV'] = 'test' DEVISE_ORM = (ENV['DEVISE_ORM'] || :active_record).to_sym $:.unshift File.dirname(__FILE__) puts "\n==> Devise.orm = #{DEVISE_ORM.inspect}" require "rails_app/config/environment" require 'rails/test_help' require "orm/#{DEVISE_ORM}" require 'capybara/rails' require 'mocha/setup' ActionMailer::Base.delivery_method = :test ActionMailer::Base.perform_deliveries = true ActionMailer::Base.default_url_options[:host] = 'example.com' ActiveSupport::Deprecation.silenced = true $VERBOSE = false class ActionDispatch::IntegrationTest include Capybara::DSL end class ActionController::TestCase if defined? Devise::Test include Devise::Test::ControllerHelpers else include Devise::TestHelpers end if defined? ActiveRecord self.use_transactional_tests = true end end
Version data entries
6 entries across 6 versions & 1 rubygems