spec/spec_helper.rb in messages_dictionary-1.0.0 vs spec/spec_helper.rb in messages_dictionary-2.0.0

- old
+ new

@@ -1,16 +1,25 @@ +# frozen_string_literal: true + require 'simplecov' SimpleCov.start do - add_filter "/spec/" - add_filter "/bin/" + add_filter '/spec/' + add_filter '/bin/' end -$LOAD_PATH << File.expand_path('../../../lib', __FILE__) -Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } +if ENV.fetch('CI', nil) == 'true' + require 'codecov' + SimpleCov.formatter = SimpleCov::Formatter::Codecov +end +$LOAD_PATH << File.expand_path('../../lib', __dir__) + +RSPEC_ROOT = File.dirname __FILE__ + +Dir["#{RSPEC_ROOT}/support/**/*.rb"].sort.each { |f| require f } + require 'messages_dictionary' RSpec.configure do |config| - config.include SpecAddons config.include SpecFilesSetup config.include SpecUtils -end \ No newline at end of file +end