test/helper.rb in peddler-0.15.0 vs test/helper.rb in peddler-0.16.0

- old
+ new

@@ -1,7 +1,18 @@ +require 'simplecov' require 'coveralls' -Coveralls.wear! + +SimpleCov.formatters = [ + SimpleCov::Formatter::HTMLFormatter, + Coveralls::SimpleCov::Formatter +] + +SimpleCov.start do + add_filter '/test/' + minimum_coverage(99.62) +end + require 'minitest/autorun' require 'yaml' require 'vcr' begin require 'pry' @@ -19,11 +30,11 @@ @data.each(&blk) end %w(mws.yml mws.yml.example).each do |path| file = File.expand_path("../#{path}", __FILE__) - if File.exists?(file) + if File.exist?(file) @data = YAML.load_file(file) break end end end @@ -68,10 +79,10 @@ 'CreatedAfter', 'QueryStartDateTime' ) c.default_cassette_options = { match_requests_on: [:host, :path, matcher], - record: !!ENV['RECORD'] ? :new_episodes : :none + record: !ENV['RECORD'] ? :none : :new_episodes } # So that fixtures do not depend on merchant credentials Accounts.each do |account| c.filter_sensitive_data('MERCHANT_ID') { account['merchant_id'] }