Skip to content

Commit

Permalink
Fix minitest references in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thbar committed Jun 13, 2024
1 parent 39d4ac2 commit 2457af9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require "kiba"

if ENV["CI"] == "true"
puts "Running with MiniTest version #{MiniTest::VERSION}"
puts "Running with Minitest version #{Minitest::VERSION}"
end

class Kiba::Test < Minitest::Test
Expand Down
10 changes: 5 additions & 5 deletions test/shared_runner_tests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def test_pre_process_runs_once
def test_pre_process_runs_before_source_is_instantiated
calls = []

mock_source_class = MiniTest::Mock.new
mock_source_class = Minitest::Mock.new
mock_source_class.expect(:new, TestEnumerableSource.new([1, 2, 3])) do
calls << :source_instantiated
end
Expand All @@ -80,9 +80,9 @@ def test_pre_process_runs_before_source_is_instantiated

def test_no_error_raised_if_destination_close_not_implemented
# NOTE: this fake destination does not implement `close`
destination_instance = MiniTest::Mock.new
destination_instance = Minitest::Mock.new

mock_destination_class = MiniTest::Mock.new
mock_destination_class = Minitest::Mock.new
mock_destination_class.expect(:new, destination_instance)

control = Kiba::Control.new
Expand All @@ -92,9 +92,9 @@ def test_no_error_raised_if_destination_close_not_implemented
end

def test_destination_close_called_if_defined
destination_instance = MiniTest::Mock.new
destination_instance = Minitest::Mock.new
destination_instance.expect(:close, nil)
mock_destination_class = MiniTest::Mock.new
mock_destination_class = Minitest::Mock.new
mock_destination_class.expect(:new, destination_instance)

control = Kiba::Control.new
Expand Down

0 comments on commit 2457af9

Please sign in to comment.