From 3a024d7600a7e74394da54b47084397cbcbae7aa Mon Sep 17 00:00:00 2001 From: luke Date: Tue, 6 Feb 2007 17:09:23 +0000 Subject: Removing the default value for :ensure on mounts. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2164 980ebf18-57e1-0310-9a29-db15c13687c0 --- test/types/mount.rb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/types/mount.rb b/test/types/mount.rb index 9bdf599cd..d153d3482 100755 --- a/test/types/mount.rb +++ b/test/types/mount.rb @@ -108,6 +108,7 @@ class TestMounts < Test::Unit::TestCase def test_simplemount mount = mkmount + mount[:ensure] = :mounted assert_apply(mount) mount.send(:states).each do |state| @@ -118,8 +119,6 @@ class TestMounts < Test::Unit::TestCase assert_nothing_raised { mount.retrieve } - assert_equal(:mounted, mount.is(:ensure)) - # Now modify a field mount[:dump] = 2 mount[:options] = "defaults,ro" @@ -269,6 +268,7 @@ class TestMounts < Test::Unit::TestCase def test_refresh mount = mkmount + mount[:ensure] = :mounted remounted = false mount.provider.meta_def(:remount) do @@ -297,6 +297,13 @@ class TestMounts < Test::Unit::TestCase assert(! remounted, "remounted even though not supposed to be mounted") end + + def test_no_default_for_ensure + mount = mkmount + mount.finish + + assert_nil(mount.should(:ensure), "Found default for ensure") + end end # $Id$ -- cgit