spec/spec_helper.rb in dentaku-3.0.0 vs spec/spec_helper.rb in dentaku-3.1.0

- old
+ new

@@ -1,9 +1,27 @@ require 'pry' -require 'coveralls' +require 'simplecov' +require 'codecov' -# Check the amount of testcoverage -Coveralls.wear! +SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new([ + SimpleCov::Formatter::HTMLFormatter, + SimpleCov::Formatter::Codecov, +]) + +SimpleCov.minimum_coverage 90 +SimpleCov.minimum_coverage_by_file 80 + +SimpleCov.start do + add_filter "spec/" +end + +RSpec.configure do |c| + c.before(:all) { + # add example for alias because we can set aliases just once + # before `calculator` method called + Dentaku.aliases = { roundup: ['roundupup'] } + } +end # automatically create a token stream from bare values def token_stream(*args) args.map do |value| type = type_for(value)