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 896eaa5 commit 6e9125dCopy full SHA for 6e9125d
test/test_ldif.rb
@@ -50,7 +50,9 @@ def test_to_ldif
50
data = File.open(TestLdifFilename, "rb") { |f| f.read }
51
io = StringIO.new(data)
52
53
- entries = data.grep(/^dn:\s*/) { $'.chomp }
+ # 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 }
56
dn_entries = entries.dup
57
58
ds = Net::LDAP::Dataset::read_ldif(io) { |type, value|
0 commit comments