spec/spec_helper.rb in spree_cmd-1.3.5 vs spec/spec_helper.rb in spree_cmd-2.0.0.rc1

- old
+ new

@@ -1,5 +1,18 @@ +if ENV["COVERAGE"] + # Run Coverage report + require 'simplecov' + SimpleCov.start do + add_group 'Controllers', 'app/controllers' + add_group 'Helpers', 'app/helpers' + add_group 'Mailers', 'app/mailers' + add_group 'Models', 'app/models' + add_group 'Views', 'app/views' + add_group 'Libraries', 'lib' + end +end + # This file is copied to ~/spec when you run 'ruby script/generate rspec' # from the project root directory. ENV["RAILS_ENV"] ||= 'test' RSpec.configure do |config| @@ -8,6 +21,7 @@ config.fixture_path = "#{::Rails.root}/spec/fixtures" config.use_transactional_fixtures = false + config.fail_fast = ENV['FAIL_FAST'] || false end