Skip to content

Commit 6e9125d

Browse files
author
Rory O'Connell
committed
Split ldif test data file so regexp in 1.9.1 works
1 parent 896eaa5 commit 6e9125d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/test_ldif.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ def test_to_ldif
5050
data = File.open(TestLdifFilename, "rb") { |f| f.read }
5151
io = StringIO.new(data)
5252

53-
entries = data.grep(/^dn:\s*/) { $'.chomp }
53+
# added .lines to turn to array because 1.9 doesn't have
54+
# .grep on basic strings
55+
entries = data.lines.grep(/^dn:\s*/) { $'.chomp }
5456
dn_entries = entries.dup
5557

5658
ds = Net::LDAP::Dataset::read_ldif(io) { |type, value|

0 commit comments

Comments
 (0)