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.
1 parent d40e19b commit 903e459Copy full SHA for 903e459
test/ber/core_ext/test_string.rb
@@ -17,7 +17,7 @@ def test_unconsumed_message
17
def test_exception_does_not_modify_string
18
original = "0$\002\001\001`\037\002\001\003\004\rAdministrator\200\vad_is_bogus".b
19
duplicate = original.dup
20
- flexmock(StringIO).any_instance.should_receive(:read_ber).and_raise(Net::BER::BerError)
+ flexmock(StringIO).new_instances.should_receive(:read_ber).and_raise(Net::BER::BerError)
21
duplicate.read_ber!(Net::LDAP::AsnSyntax) rescue Net::BER::BerError
22
23
assert_equal original, duplicate
0 commit comments