spec/spec_helper.rb in curate-0.6.1 vs spec/spec_helper.rb in curate-0.6.3
- old
+ new
@@ -1,17 +1,15 @@
# Configure Rails Environment
ENV["RAILS_ENV"] ||= 'test'
if ENV['COVERAGE']
- require 'coveralls'
require 'simplecov'
ENGINE_ROOT = File.expand_path('../..', __FILE__)
# Out of the box, SimpleCov was looking at file in ENGINE_ROOT/spec/internal;
# After all that was where Rails was pointed at.
- SimpleCov.formatter = Coveralls::SimpleCov::Formatter
SimpleCov.root(ENGINE_ROOT)
SimpleCov.start 'rails' do
filters.clear
add_filter do |src|
src.filename !~ /^#{ENGINE_ROOT}/
@@ -21,10 +19,12 @@
SimpleCov.command_name "spec"
end
require File.expand_path("../internal/config/environment.rb", __FILE__)
+require File.expand_path('../matchers', __FILE__)
+
# Prevent double spec runs under Zeus
require 'rspec/autorun' unless ENV['RUNNING_VIA_ZEUS']
require File.expand_path('../spec_patch', __FILE__)
@@ -51,9 +51,10 @@
# the seed, which is printed after each run.
# --seed 1234
config.order = 'random'
config.include Devise::TestHelpers, type: :controller
+ config.include Devise::TestHelpers, type: :view
config.include InputSupport, type: :input, example_group: {
file_path: config.escaped_path(%w[spec inputs])
}
config.use_transactional_fixtures = false