Sha256: 982b3de2a5267fe693ff7dd9a590e4714cc1a0c19f728c7c8b287159134d5778

Contents?: true

Size: 987 Bytes

Versions: 27

Compression:

Stored size: 987 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}"

I18n.load_path << File.expand_path("../support/locale/en.yml", __FILE__)

require 'mocha/setup'
require 'webrat'
Webrat.configure do |config|
  config.mode = :rails
  config.open_error_files = false
end

if ActiveSupport.respond_to?(:test_order)
  ActiveSupport.test_order = :random
end

OmniAuth.config.logger = Logger.new('/dev/null')

# 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 }

# For generators
require "rails/generators/test_case"
require "generators/devise/install_generator"
require "generators/devise/views_generator"
require "generators/devise/controllers_generator"

Version data entries

27 entries across 27 versions & 5 rubygems

Version Path
devise-4.3.0 test/test_helper.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/devise-4.2.1/test/test_helper.rb
devise-4.2.1 test/test_helper.rb
devise-4.2.0 test/test_helper.rb
devise-3.5.10 test/test_helper.rb
devise-4.0.3 test/test_helper.rb
devise-4.1.1 test/test_helper.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/devise-4.1.0/test/test_helper.rb
devise-4.1.0 test/test_helper.rb
devise-3.5.9 test/test_helper.rb
devise-4.0.2 test/test_helper.rb
devise-4.0.1 test/test_helper.rb
devise-3.5.8 test/test_helper.rb
devise-3.5.7 test/test_helper.rb
devise-4.0.0 test/test_helper.rb
devise-4.0.0.rc2 test/test_helper.rb
devise-4.0.0.rc1 test/test_helper.rb
devise-3.5.6 test/test_helper.rb
devise-3.5.5 test/test_helper.rb
devise-3.5.4 test/test_helper.rb