test/minitest_config.rb in stockpile-1.1 vs test/minitest_config.rb in stockpile-2.0

- old
+ new

@@ -1,6 +1,6 @@ -# -*- ruby encoding: utf-8 -*- +# frozen_string_literal: true gem 'minitest' require 'minitest/autorun' require 'minitest/pretty_diff' require 'minitest/focus' @@ -16,14 +16,10 @@ end def stub_env env, options = {}, *block_args, &block mock = lambda { |key| env.fetch(key) { |k| - if options[:passthrough] - ENV.send(:"__minitest_stub__[]", k) - else - nil - end + ENV.send(:"__minitest_stub__[]", k) if options[:passthrough] } } if defined? Minitest::Moar::Stubbing stub ENV, :[], mock, *block_args, &block