Skip to content

Commit 0cf442c

Browse files
committed
Update test for minitest/mock
1 parent 5e70c94 commit 0cf442c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/rbs/test/runtime_test_test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ def world: () -> void
142142
end
143143

144144
def test_minitest
145+
omit unless has_gem?("minitest-mock") && has_gem?("minitest")
145146
omit if skip_minitest?
146147

147148
assert_test_success(other_env: { 'RBS_TEST_TARGET' => 'Foo', 'RBS_TEST_DOUBLE_SUITE' => 'minitest' }, rbs_content: <<RBS, ruby_content: <<RUBY)
@@ -156,6 +157,7 @@ def foo(integer)
156157
end
157158
158159
require "minitest/autorun"
160+
require "minitest/mock"
159161
160162
class FooTest < Minitest::Test
161163
def test_foo_mock

0 commit comments

Comments
 (0)