summaryrefslogtreecommitdiffstats
path: root/spec/unit
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-12-02 22:28:22 -0600
committerLuke Kanies <luke@madstop.com>2008-12-02 22:28:22 -0600
commit6b30171435583b1a69c4ffe7b8b1760f5585cd38 (patch)
treed9f0864b1f8426efa1c66227a2d9343be22977f6 /spec/unit
parent99a9b5a045af6f1c68619792a45603cbe450652d (diff)
downloadpuppet-6b30171435583b1a69c4ffe7b8b1760f5585cd38.tar.gz
puppet-6b30171435583b1a69c4ffe7b8b1760f5585cd38.tar.xz
puppet-6b30171435583b1a69c4ffe7b8b1760f5585cd38.zip
Fixing all broken tests. Most of them were broken by fileserving changes.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit')
-rwxr-xr-xspec/unit/type.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/type.rb b/spec/unit/type.rb
index 6f1052516..89a8e5e9c 100755
--- a/spec/unit/type.rb
+++ b/spec/unit/type.rb
@@ -14,6 +14,11 @@ describe Puppet::Type do
resource.expirer.should equal(catalog)
end
+ it "should do nothing when asked to expire when it has no catalog" do
+ resource = Puppet::Type.type(:mount).create(:name => "foo", :fstype => "bar", :pass => 1, :ensure => :present)
+ lambda { resource.expire }.should_not raise_error
+ end
+
it "should be able to retrieve a property by name" do
resource = Puppet::Type.type(:mount).create(:name => "foo", :fstype => "bar", :pass => 1, :ensure => :present)
resource.property(:fstype).must be_instance_of(Puppet::Type.type(:mount).attrclass(:fstype))