ensl.org/spec/spec_helper.rb
Luke Barratt 6b5f2a0854 Update travis config to cache bundler
Fallback to older rails I18n behaviour
Silence deprecation warnings, for now
Added code climate test reporter
Created CI deployment task
Added *all* the badges
2014-03-25 21:58:51 +00:00

23 lines
602 B
Ruby

ENV["RAILS_ENV"] ||= 'test'
require 'codeclimate-test-reporter'
require 'simplecov'
CodeClimate::TestReporter.start
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