spec/spec_helper.rb in aasm-5.0.5 vs spec/spec_helper.rb in aasm-5.0.6
- old
+ new
@@ -1,4 +1,14 @@
+require 'simplecov'
+SimpleCov.start do
+ add_filter '/spec/'
+end
+
+if ENV['CI'] == 'true'
+ require 'codecov'
+ SimpleCov.formatter = SimpleCov::Formatter::Codecov
+end
+
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)))
$LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib')))
require 'aasm'
require 'rspec'
require 'aasm/rspec'