spec/spec_helper.rb in danger-todoist-1.1.0 vs spec/spec_helper.rb in danger-todoist-1.2.0
- old
+ new
@@ -1,4 +1,11 @@
+require "simplecov"
+if ENV["COVERAGE"]
+ SimpleCov.start do
+ add_filter "/spec/"
+ end
+end
+
require "pathname"
ROOT = Pathname.new(File.expand_path("../../", __FILE__))
$LOAD_PATH.unshift((ROOT + "lib").to_s)
$LOAD_PATH.unshift((ROOT + "spec").to_s)