Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update specs to run with simplecov

  • Loading branch information...
commit d1247d307ad5c1cee95688fb23bcfe03c03f5423 1 parent 003d10b
Dan Kubb dkubb authored
Showing with 18 additions and 2 deletions.
  1. +18 −2 spec/spec_helper.rb
20 spec/spec_helper.rb
View
@@ -1,10 +1,26 @@
# encoding: utf-8
-require 'rspec'
+require 'devtools'
+
+Devtools.init_spec_helper
+
+if ENV['COVERAGE'] == 'true'
+ require 'simplecov'
+
+ SimpleCov.start do
+ command_name 'spec:unit'
+ add_filter 'config'
+ add_filter 'spec'
+ minimum_coverage 88.24
+ end
+end
+
require 'inflecto'
# require spec support files and shared behavior
-Dir[File.expand_path('../{support,shared}/**/*.rb', __FILE__)].each { |f| require(f) }
+Dir[File.expand_path('../{support,shared}/**/*.rb', __FILE__)].each do |file|
+ require file
+end
RSpec.configure do |config|
end
Please sign in to comment.
Something went wrong with that request. Please try again.