spec/spec_helper.rb in finite_machine-0.12.0 vs spec/spec_helper.rb in finite_machine-0.12.1
- old
+ new
@@ -1,14 +1,14 @@
-# encoding: utf-8
+# frozen_string_literal: true
-if RUBY_VERSION > '1.9' and (ENV['COVERAGE'] || ENV['TRAVIS'])
+if ENV['COVERAGE'] || ENV['TRAVIS']
require 'simplecov'
require 'coveralls'
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
Coveralls::SimpleCov::Formatter
- ]
+ ])
SimpleCov.start do
command_name 'spec'
add_filter 'spec'
end