From 71fe24096c612996cb2a827c919a4c88ae1e3495 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 25 Feb 2016 00:17:01 +0100 Subject: Adding a Mention model, test stubs --- spec/rails_helper.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 spec/rails_helper.rb (limited to 'spec/rails_helper.rb') diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb new file mode 100644 index 000000000..0a04d560c --- /dev/null +++ b/spec/rails_helper.rb @@ -0,0 +1,16 @@ +ENV['RAILS_ENV'] ||= 'test' +require File.expand_path('../../config/environment', __FILE__) + +abort("The Rails environment is running in production mode!") if Rails.env.production? + +require 'spec_helper' +require 'rspec/rails' + +ActiveRecord::Migration.maintain_test_schema! + +RSpec.configure do |config| + config.fixture_path = "#{::Rails.root}/spec/fixtures" + config.use_transactional_fixtures = true + config.infer_spec_type_from_file_location! + config.filter_rails_from_backtrace! +end -- cgit