From 8aea73a57b37a0501ef64799b2cb5bd80727ab3c Mon Sep 17 00:00:00 2001 From: Ernesto Tagwerker Date: Sat, 16 Mar 2024 11:13:04 -0400 Subject: [PATCH] Change the way we require mocha/minitest --- test/data/test_helper.rb | 2 +- test/test_helper.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/data/test_helper.rb b/test/data/test_helper.rb index 19aeee9..02df6c7 100644 --- a/test/data/test_helper.rb +++ b/test/data/test_helper.rb @@ -2,7 +2,7 @@ require 'minitest/autorun' require 'shoulda' require 'test_construct' -require 'mocha/mini_test' +require 'mocha/minitest' $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) diff --git a/test/test_helper.rb b/test/test_helper.rb index 3655b81..d4f3e19 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -3,7 +3,7 @@ require 'minitest/autorun' #require 'shoulda' require 'test_construct' -require 'mocha/mini_test' +require 'mocha/minitest' SimpleCov.start do add_filter 'specs/ruby/1.9.1/gems/' @@ -14,7 +14,7 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'churn/calculator' -Mocha::Configuration.prevent(:stubbing_non_existent_method) +# Mocha::Configuration.prevent(:stubbing_non_existent_method) class Minitest::Test include TestConstruct::Helpers