* Use in memory sqlite database for test environment * Monkey patch BCrypt default cost factor * Clean spec/spec_helper.rb
17 lines
567 B
Ruby
17 lines
567 B
Ruby
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
|
ENV['RAILS_ENV'] ||= 'test'
|
|
require File.expand_path('../../config/environment', __FILE__)
|
|
require 'rspec/rails'
|
|
|
|
# Requires supporting ruby files with custom matchers and macros, etc,
|
|
# in spec/support/ and its subdirectories.
|
|
Dir[Rails.root.join('spec/support/**/*.rb')].each {|f| require f}
|
|
|
|
RSpec.configure do |config|
|
|
config.mock_with :rspec
|
|
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
|
config.use_transactional_fixtures = true
|
|
end
|
|
|
|
load "#{Rails.root.to_s}/db/schema.rb"
|