aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGibheer <gibheer@gmail.com>2012-11-20 20:36:25 +0100
committerGibheer <gibheer@gmail.com>2012-11-20 20:37:10 +0100
commit495d8f650302d5226cd677b062891ea9021483d5 (patch)
tree28bba0dfe36242be45206cc13eccbd641bbe0ad5
parent926775f029dfcbedcda087242151dae7ee31b51f (diff)
add simplecov to get metrics
This only works with MRI, but should be good enough.
-rw-r--r--spec/spec_helper.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index c345b2c..909e1e8 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,3 +1,10 @@
+unless RUBY_ENGINE == 'rbx' then
+ require 'simplecov'
+ SimpleCov.start do
+ add_filter '_spec.rb'
+ end
+end
+
require 'rack'
require 'zero/all'