Skip to content

Commit c77dba4

Browse files
committed
Fix ruby 2.6 syntax error
1 parent f26e94f commit c77dba4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/encoding_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@
865865

866866
it "fails if the signature is too short" do
867867
# Hack a byte off at the end.
868-
bad_sig = signature.byteslice((..-2))
868+
bad_sig = signature.byteslice((0..-2))
869869
expect { SSHData::Encoding.decode_openssh_signature(bad_sig) }.to raise_error(SSHData::DecodeError)
870870
end
871871
end

0 commit comments

Comments
 (0)