Skip to content

Commit 903e459

Browse files
author
Jerry Cheung
committed
fix deprecation any_instances
1 parent d40e19b commit 903e459

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ber/core_ext/test_string.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_unconsumed_message
1717
def test_exception_does_not_modify_string
1818
original = "0$\002\001\001`\037\002\001\003\004\rAdministrator\200\vad_is_bogus".b
1919
duplicate = original.dup
20-
flexmock(StringIO).any_instance.should_receive(:read_ber).and_raise(Net::BER::BerError)
20+
flexmock(StringIO).new_instances.should_receive(:read_ber).and_raise(Net::BER::BerError)
2121
duplicate.read_ber!(Net::LDAP::AsnSyntax) rescue Net::BER::BerError
2222

2323
assert_equal original, duplicate

0 commit comments

Comments
 (0)