summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorMatt Robinson <matt@puppetlabs.com>2011-04-08 13:43:35 -0700
committerMatt Robinson <matt@puppetlabs.com>2011-04-08 13:45:44 -0700
commit101c6ede6185aec5833787c0d7bb0ce1e96bb656 (patch)
tree082bbff77e79c331222b54a81e371285d36eecae /spec
parent08a53bd452ca095df0d44a8d6b41e7088f6c449e (diff)
downloadpuppet-101c6ede6185aec5833787c0d7bb0ce1e96bb656.tar.gz
puppet-101c6ede6185aec5833787c0d7bb0ce1e96bb656.tar.xz
puppet-101c6ede6185aec5833787c0d7bb0ce1e96bb656.zip
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@puppetlabs.com>
Diffstat (limited to 'spec')
-rw-r--r--spec/integration/provider/mount_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/integration/provider/mount_spec.rb b/spec/integration/provider/mount_spec.rb
index d6f25fe1d..646862050 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)