@@ -112,23 +112,23 @@ def test_raises_unknown_exceptions
112
112
end
113
113
114
114
def test_modify_ops_delete
115
- args = { :operations => [ [ :delete , "mail" ] ] }
115
+ args = { :operations => [ [ :delete , "mail" ] ] }
116
116
result = Net ::LDAP ::Connection . modify_ops ( args [ :operations ] )
117
- expected = [ "0\r \n \x01 \x01 0\b \x04 \x04 mail1\x00 " ]
117
+ expected = [ "0\r \n \x01 \x01 0\b \x04 \x04 mail1\x00 " ]
118
118
assert_equal ( expected , result )
119
119
end
120
120
121
121
def test_modify_ops_add
122
- args = { :operations => [ [ :add , "mail" , "testuser@example.com" ] ] }
122
+ args = { :operations => [ [ :add , "mail" , "testuser@example.com" ] ] }
123
123
result = Net ::LDAP ::Connection . modify_ops ( args [ :operations ] )
124
- expected = [ "0#\n \x01 \x00 0\x1E \x04 \x04 mail1\x16 \x04 \x14 testuser@example.com" ]
124
+ expected = [ "0#\n \x01 \x00 0\x1E \x04 \x04 mail1\x16 \x04 \x14 testuser@example.com" ]
125
125
assert_equal ( expected , result )
126
126
end
127
127
128
128
def test_modify_ops_replace
129
- args = { :operations => [ [ :replace , "mail" , "testuser@example.com" ] ] }
129
+ args = { :operations => [ [ :replace , "mail" , "testuser@example.com" ] ] }
130
130
result = Net ::LDAP ::Connection . modify_ops ( args [ :operations ] )
131
- expected = [ "0#\n \x01 \x02 0\x1E \x04 \x04 mail1\x16 \x04 \x14 testuser@example.com" ]
131
+ expected = [ "0#\n \x01 \x02 0\x1E \x04 \x04 mail1\x16 \x04 \x14 testuser@example.com" ]
132
132
assert_equal ( expected , result )
133
133
end
134
134
@@ -463,7 +463,7 @@ def test_search_net_ldap_connection_event
463
463
# search data
464
464
search_data_ber = Net ::BER ::BerIdentifiedArray . new ( [ 1 , [
465
465
"uid=user1,ou=People,dc=rubyldap,dc=com" ,
466
- [ [ "uid" , [ "user1" ] ] ]
466
+ [ [ "uid" , [ "user1" ] ] ]
467
467
] ] )
468
468
search_data_ber . ber_identifier = Net ::LDAP ::PDU ::SearchReturnedData
469
469
search_data = [ 1 , search_data_ber ]
0 commit comments