From 1279fe68cb39711820f6599179a93c8255cd2cca Mon Sep 17 00:00:00 2001 From: jc00ke Date: Sun, 18 Mar 2012 19:53:26 -0700 Subject: [PATCH] Use ENV var for coverage This will lessen the chance of mistakenly committing with that branch set to true. --- .gitignore | 1 + test/helper.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 248513af..3bec8332 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ Gemfile.lock *.swp dump.rdb .rbx +coverage/ diff --git a/test/helper.rb b/test/helper.rb index 8d2d3d87..5f8a9ebf 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -1,5 +1,5 @@ $TESTING = true -if false +if ENV.has_key?("SIMPLECOV") require 'simplecov' SimpleCov.start end