Skip to content

Commit 140a347

Browse files
committed
Fix deprecations, warnings in tests
1 parent 3fbbb6a commit 140a347

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/main_test.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
$VERBOSE = false
44
require 'workflow'
5-
require 'mocha/setup'
5+
require 'mocha/minitest'
66
require 'stringio'
77
#require 'ruby-debug'
88

@@ -92,7 +92,8 @@ class MainTest < Minitest::Test
9292
assert_equal 'one', c.new.current_state.to_s
9393
end
9494

95-
test 'multiple events with the same name and different arguments lists from different states'
95+
# TODO Consider following test case:
96+
# test 'multiple events with the same name and different arguments lists from different states'
9697

9798
test 'implicit transition callback' do
9899
args = mock()
@@ -385,7 +386,7 @@ def capture_streams
385386
yield
386387
$stdout
387388
ensure
388-
captured, $stdout = $stdout, old_stdout
389+
$stdout = old_stdout
389390
end
390391

391392
end

0 commit comments

Comments
 (0)