Skip to content

Commit d256687

Browse files
ekohlstejskalleos
authored andcommitted
Correct minitest loading in tests helper
minitest must be loaded before mocha. Modern minitest also prefers explicit choosing of the test library instead of autodetection.
1 parent f31df63 commit d256687

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/helper.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
require 'mocha/api'
2-
Shindo::Tests.send(:include, Mocha::API)
3-
41
require 'minitest/autorun'
2+
require 'mocha/minitest'
3+
Shindo::Tests.send(:include, Mocha::API)
54

65
require File.expand_path('../../lib/fog/vsphere', __FILE__)

tests/test_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
require 'minitest'
12
require 'mocha/minitest'
23
require 'vcr'
34
require 'webmock/minitest'

0 commit comments

Comments
 (0)