summaryrefslogtreecommitdiffstats
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-01-03 15:39:59 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-01-03 15:39:59 +0100
commitc10efd3d204e4b5e14db58a8423c7a00725519e2 (patch)
tree3129b87c48b3fe8dd3c9fe1c2b4ed77a5c195913 /spec/spec_helper.rb
parenta59f33f9b69e8363944eaac0e99913993a9ab9b0 (diff)
downloadzorglub-c10efd3d204e4b5e14db58a8423c7a00725519e2.zip
zorglub-c10efd3d204e4b5e14db58a8423c7a00725519e2.tar.gz
add simplecov code coverage
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 8a4f174..617a4ab 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,5 +1,13 @@
#! /usr/bin/env ruby
#
+begin
+ require 'simplecov'
+ SimpleCov.start do
+ add_filter 'spec'
+ end
+rescue LoadError
+end
+#
require 'zorglub'
#
ENGINE_PROC = Proc.new { |path,obj| "path=>#{path} : obj=>#{obj}" }