spec_helper.rb 485 B

12345678910111213141516
  1. ENV['RAILS_ENV'] ||= 'test'
  2. require File.expand_path('../../config/environment', __FILE__)
  3. require 'rspec/rails'
  4. require 'ffaker'
  5. Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
  6. ActiveRecord::Migration.check_pending! if defined?(ActiveRecord::Migration)
  7. RSpec.configure do |config|
  8. config.include FactoryGirl::Syntax::Methods
  9. config.use_transactional_fixtures = false
  10. config.infer_base_class_for_anonymous_controllers = false
  11. config.order = 'random'
  12. end