Sha256: f2d77eeff9e9afde9510c354d5ec83e39fe9ca14058813cf43f97c59570482ac
Contents?: true
Size: 969 Bytes
Versions: 17
Compression:
Stored size: 969 Bytes
Contents
ENV["RAILS_ENV"] ||= 'test' DOORKEEPER_ORM = (ENV['orm'] || :active_record).to_sym $:.unshift File.dirname(__FILE__) require 'dummy/config/environment' require 'rspec/rails' require 'rspec/autorun' require 'generator_spec/test_case' require 'timecop' require 'database_cleaner' puts "====> Doorkeeper.orm = #{Doorkeeper.configuration.orm.inspect}" puts "====> Rails version: #{Rails.version}" puts "====> Ruby version: #{RUBY_VERSION}" require "support/orm/#{Doorkeeper.configuration.orm_name}" ENGINE_RAILS_ROOT = File.join(File.dirname(__FILE__), '../') Dir["#{File.dirname(__FILE__)}/support/{dependencies,helpers,shared}/*.rb"].each { |f| require f } RSpec.configure do |config| config.mock_with :rspec config.infer_base_class_for_anonymous_controllers = false config.before do DatabaseCleaner.start Doorkeeper.configure { orm DOORKEEPER_ORM } end config.after do DatabaseCleaner.clean end config.order = 'random' end
Version data entries
17 entries across 17 versions & 1 rubygems