spec/spec_helper.rb in proforma-1.0.1 vs spec/spec_helper.rb in proforma-1.0.2

- old
+ new

@@ -6,16 +6,21 @@ # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # require 'yaml' - require 'pry' +require 'pry-byebug' -require 'simplecov' -require 'simplecov-console' -SimpleCov.formatter = SimpleCov::Formatter::Console -SimpleCov.start +unless ENV['DISABLE_SIMPLECOV'] == 'true' + require 'simplecov' + require 'simplecov-console' + + SimpleCov.formatter = SimpleCov::Formatter::Console + SimpleCov.start do + add_filter %r{\A/spec/} + end +end require './lib/proforma' def yaml_read(file) YAML.safe_load(File.open(file))