spec/spec_helper.rb in hashematics-1.0.0 vs spec/spec_helper.rb in hashematics-1.1.0
- old
+ new
@@ -5,16 +5,22 @@
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
-require 'pry'
require 'csv'
+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/hashematics'
def fixture_path(*filename)
File.join('spec', 'fixtures', filename)