about summary refs log tree commit diff
path: root/spec/rails_helper.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-02-25 00:17:01 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-02-25 00:17:01 +0100
commit71fe24096c612996cb2a827c919a4c88ae1e3495 (patch)
treefb1deed15866b83f0ed1583c91bc4d6fcb432827 /spec/rails_helper.rb
parent42eeecba3f334227c10533a065e238f51f6dee4c (diff)
Adding a Mention model, test stubs
Diffstat (limited to 'spec/rails_helper.rb')
-rw-r--r--spec/rails_helper.rb16
1 files changed, 16 insertions, 0 deletions
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