We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5edf266 + 3500caa commit bbdf48bCopy full SHA for bbdf48b
test/load_path_cache/core_ext/kernel_require_test.rb
@@ -17,9 +17,9 @@ def test_uses_the_same_duck_type_as_require
17
$LOAD_PATH.push(dir)
18
FileUtils.touch("#{dir}/a.rb")
19
stringish = mock
20
- stringish.expects(:to_str).returns("a").twice # bootsnap + ruby
+ stringish.expects(:to_str).returns("a").at_least(2) # bootsnap + ruby
21
pathish = mock
22
- pathish.expects(:to_path).returns(stringish).twice # bootsnap + ruby
+ pathish.expects(:to_path).returns(stringish).at_least(2) # bootsnap + ruby
23
assert pathish.respond_to?(:to_path)
24
require(pathish)
25
FileUtils.rm_rf(dir)
0 commit comments