summaryrefslogtreecommitdiffstats
path: root/spec/unit
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2009-01-27 10:03:05 +1100
committerJames Turnbull <james@lovedthanlost.net>2009-01-27 10:03:05 +1100
commitb27fccd4345d80ff826cfbdad1d409d712923e4b (patch)
tree5ede3109f97030b1909a4e434f84f1637dfd18fc /spec/unit
parent15d43608593e3abeae52e773db352950b6ca7655 (diff)
downloadpuppet-b27fccd4345d80ff826cfbdad1d409d712923e4b.tar.gz
puppet-b27fccd4345d80ff826cfbdad1d409d712923e4b.tar.xz
puppet-b27fccd4345d80ff826cfbdad1d409d712923e4b.zip
Fixed #1852 - Correct behaviour when no SELinux bindings
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/type/file/selinux.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/unit/type/file/selinux.rb b/spec/unit/type/file/selinux.rb
index a97f9bcb4..4c16fe5df 100644
--- a/spec/unit/type/file/selinux.rb
+++ b/spec/unit/type/file/selinux.rb
@@ -74,6 +74,12 @@ Dir.chdir(File.dirname(__FILE__)) { (s = lambda { |f| File.exist?(f) ? require(f
@sel.sync
end
+ it "should do nothing for insync? if no SELinux support" do
+ @sel.should = %{newcontext}
+ @sel.expects(:selinux_support?).returns false
+ @sel.insync?("oldcontext").should == true
+ end
+
after do
Puppet::Type.type(:file).clear
end