A lightly modified copy of Mastodon, the canonical repository for Chinwag Social's live code. https://social.chinwag.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rails_helper.rb 486B

12345678910111213141516
  1. ENV['RAILS_ENV'] ||= 'test'
  2. require File.expand_path('../../config/environment', __FILE__)
  3. abort("The Rails environment is running in production mode!") if Rails.env.production?
  4. require 'spec_helper'
  5. require 'rspec/rails'
  6. ActiveRecord::Migration.maintain_test_schema!
  7. RSpec.configure do |config|
  8. config.fixture_path = "#{::Rails.root}/spec/fixtures"
  9. config.use_transactional_fixtures = true
  10. config.infer_spec_type_from_file_location!
  11. config.filter_rails_from_backtrace!
  12. end