mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
21 lines
534 B
Ruby
21 lines
534 B
Ruby
ENV["RAILS_ENV"] ||= 'test'
|
|
|
|
require 'simplecov'
|
|
SimpleCov.start 'rails'
|
|
|
|
require File.expand_path("../../config/environment", __FILE__)
|
|
require 'rspec/rails'
|
|
require 'capybara/rspec'
|
|
require 'capybara/poltergeist'
|
|
|
|
Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
|
|
|
|
Capybara.javascript_driver = :poltergeist
|
|
|
|
RSpec.configure do |config|
|
|
config.include FactoryGirl::Syntax::Methods
|
|
|
|
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
|
config.use_transactional_fixtures = true
|
|
config.order = "random"
|
|
end
|