spec/spec_helper.rb in flavicon-0.1.0 vs spec/spec_helper.rb in flavicon-0.1.1
- old
+ new
@@ -1,6 +1,7 @@
require 'simplecov'
+require 'coveralls'
module SimpleCov::Configuration
def clean_filters
@filters = []
end
@@ -9,12 +10,18 @@
SimpleCov.configure do
clean_filters
load_profile 'test_frameworks'
end
+SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
+ SimpleCov::Formatter::HTMLFormatter,
+ Coveralls::SimpleCov::Formatter
+]
+
ENV['COVERAGE'] && SimpleCov.start do
add_filter '/.rvm/'
end
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rspec'
require 'flavicon'