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

Version Path
doorkeeper-1.0.0 spec/spec_helper_integration.rb
doorkeeper-1.0.0.rc2 spec/spec_helper_integration.rb
doorkeeper-1.0.0.rc1 spec/spec_helper_integration.rb
doorkeeper-0.7.4 spec/spec_helper_integration.rb
doorkeeper-0.7.3 spec/spec_helper_integration.rb
doorkeeper-0.7.2 spec/spec_helper_integration.rb
doorkeeper-0.7.1 spec/spec_helper_integration.rb
doorkeeper-0.7.0 spec/spec_helper_integration.rb
doorkeeper-0.6.7 spec/spec_helper_integration.rb
doorkeeper-0.6.6 spec/spec_helper_integration.rb
doorkeeper-0.6.5 spec/spec_helper_integration.rb
doorkeeper-0.6.4 spec/spec_helper_integration.rb
doorkeeper-0.6.3 spec/spec_helper_integration.rb
doorkeeper-0.6.2 spec/spec_helper_integration.rb
doorkeeper-0.6.1 spec/spec_helper_integration.rb
doorkeeper-0.6.0 spec/spec_helper_integration.rb
doorkeeper-0.6.0.rc1 spec/spec_helper_integration.rb