Skip to content

Commit

Permalink
Change the way we require mocha/minitest
Browse files Browse the repository at this point in the history
  • Loading branch information
etagwerker committed Mar 16, 2024
1 parent 3463ced commit 8aea73a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/data/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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__))
Expand Down
4 changes: 2 additions & 2 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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/'
Expand All @@ -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
Expand Down

0 comments on commit 8aea73a

Please sign in to comment.