mirror of
https://github.com/fspc/bike-database.git
synced 2025-04-04 10:03:22 -04:00
16 lines
501 B
Ruby
16 lines
501 B
Ruby
ENV["RAILS_ENV"] ||= 'test'
|
|
require File.expand_path("../../config/environment", __FILE__)
|
|
require 'rspec/rails'
|
|
require 'rspec/autorun'
|
|
|
|
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
|
|
|
|
ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
|
|
|
|
RSpec.configure do |config|
|
|
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
|
config.use_transactional_fixtures = true
|
|
config.infer_base_class_for_anonymous_controllers = false
|
|
config.order = "random"
|
|
end
|