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 480bd17 commit ab7b60cCopy full SHA for ab7b60c
lib/net/ber/core_ext/true_class.rb
@@ -6,6 +6,6 @@ module Net::BER::Extensions::TrueClass
6
# Converts +true+ to the BER wireline representation of +true+.
7
def to_ber
8
# http://tools.ietf.org/html/rfc4511#section-5.1
9
- "\001\001\xFF"
+ "\001\001\xFF".force_encoding("ASCII-8BIT")
10
end
11
test/ber/test_ber.rb
@@ -14,7 +14,7 @@ def test_array
14
15
16
def test_true
17
- assert_equal "\x01\x01\xFF", true.to_ber
+ assert_equal "\x01\x01\xFF".b, true.to_ber
18
19
20
def test_false
0 commit comments