lib/closer.rb in closer-0.4.1 vs lib/closer.rb in closer-0.4.2
- old
+ new
@@ -1,24 +1,20 @@
-require "closer/version"
-require "closer/config"
-require 'closer/cucumber_patch'
+require 'closer/version'
+require 'closer/config'
+#require 'closer/cucumber_patch'
module Closer
def self.config
@config ||= Closer::Config.new
end
end
-true_values = %w{ true t yes y 1 }
-coverage_enabled = true_values.include?(ENV["COVERAGE"].to_s.downcase) and true_values.include?(ENV['ACCEPTANCE_TEST'].to_s.downcase)
-
-if coverage_enabled
+if Closer.config.coverage_enabled?
require 'simplecov'
require 'simplecov-rcov'
SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
SimpleCov.command_name(ENV['COMMAND_NAME'] || 'Cucumber')
SimpleCov.merge_timeout(Closer.config.merge_timeout)
SimpleCov.start
end
-