summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean E. Millichamp <sean@bruenor.org>2008-09-30 14:02:33 -0400
committerJames Turnbull <james@lovedthanlost.net>2008-10-03 14:33:32 +1000
commit8153181aa39b05847f3a5c3c9f627ca4ba629d67 (patch)
tree4dd6391e0794af2a615b3daeeab86577d09046db
parente77ddc16570fd15b161db416e7dd35f95e7fb0ac (diff)
downloadpuppet-8153181aa39b05847f3a5c3c9f627ca4ba629d67.tar.gz
puppet-8153181aa39b05847f3a5c3c9f627ca4ba629d67.tar.xz
puppet-8153181aa39b05847f3a5c3c9f627ca4ba629d67.zip
Clean up of SELinux rspec tests so all pass
-rw-r--r--spec/unit/other/selinux.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/unit/other/selinux.rb b/spec/unit/other/selinux.rb
index 3a07e0933..465fc4ea0 100644
--- a/spec/unit/other/selinux.rb
+++ b/spec/unit/other/selinux.rb
@@ -23,6 +23,9 @@ describe Puppet.type(:file), " when manipulating file contexts" do
it "should use :seltype to get/set an SELinux user file context attribute" do
@file.property(:seltype).should == "type_t"
end
+ after :each do
+ Puppet::Type::File.clear()
+ end
end
describe Puppet.type(:selboolean), " when manipulating booleans" do
@@ -49,6 +52,9 @@ describe Puppet.type(:selboolean), " when manipulating booleans" do
@bool[:persistent] = false
@bool[:persistent].should == :false
end
+ after :each do
+ Puppet::Type::Selboolean.clear()
+ end
end
describe Puppet.type(:selmodule), " when checking policy modules" do
@@ -75,5 +81,8 @@ describe Puppet.type(:selmodule), " when checking policy modules" do
@module[:syncversion] = :false
@module.property(:syncversion).should == :false
end
+ after :each do
+ Puppet::Type::Selmodule.clear()
+ end
end