[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5
Matt Robinson
matt at puppetlabs.com
Tue May 10 08:11:49 UTC 2011
The following commit has been merged in the experimental branch:
commit 101c6ede6185aec5833787c0d7bb0ce1e96bb656
Author: Matt Robinson <matt at puppetlabs.com>
Date: Fri Apr 8 13:43:35 2011 -0700
maint: Get tests passing on Ruby < 1.8.7
Fixing test errors:
wrong argument type Symbol (expected Proc)
undefined method `lines' for #<Array:0x1020823e0>
Reviewed-by: Nick Lewis <nick at puppetlabs.com>
diff --git a/spec/integration/provider/mount_spec.rb b/spec/integration/provider/mount_spec.rb
index d6f25fe..6468620 100644
--- a/spec/integration/provider/mount_spec.rb
+++ b/spec/integration/provider/mount_spec.rb
@@ -56,7 +56,7 @@ describe "mount provider (integration)" do
def check_fstab(expected_to_be_present)
# Verify that the fake fstab has the expected data in it
- fstab_contents = File.read(@fake_fstab).lines.map(&:chomp).reject { |x| x =~ /^#|^$/ }
+ fstab_contents = File.read(@fake_fstab).split("\n").reject { |x| x =~ /^#|^$/ }
if expected_to_be_present
fstab_contents.length().should == 1
device, rest_of_line = fstab_contents[0].split(/\t/,2)
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list