spec/spec_helper.rb in pastel-0.3.0 vs spec/spec_helper.rb in pastel-0.4.0

- old
+ new

@@ -1,6 +1,21 @@ # encoding: utf-8 +if RUBY_VERSION > '1.9' and (ENV['COVERAGE'] || ENV['TRAVIS']) + require 'simplecov' + require 'coveralls' + + SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[ + SimpleCov::Formatter::HTMLFormatter, + Coveralls::SimpleCov::Formatter + ] + + SimpleCov.start do + command_name 'spec' + add_filter 'spec' + end +end + require 'pastel' RSpec.configure do |config| config.expect_with :rspec do |expectations| expectations.include_chain_clauses_in_custom_matcher_descriptions = true