diff options
| author | Jesse Wolfe <jes5199@gmail.com> | 2011-02-25 13:47:22 -0800 |
|---|---|---|
| committer | Jesse Wolfe <jes5199@gmail.com> | 2011-02-25 13:47:22 -0800 |
| commit | 96e9f8f4feab5d768fff304fdb129405596ba128 (patch) | |
| tree | fdda1e3329fad8aaa7eae7adc6e0334128245260 /spec | |
| parent | 1172a4ee50040843e0e4b5eef73183aaf50be855 (diff) | |
| parent | ac2262d071cc2c9841843354585980696c689ca3 (diff) | |
Merge branch 'ticket/2.6.next/3999' into 2.6.next
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/unit/type/file/selinux_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/type/file/selinux_spec.rb b/spec/unit/type/file/selinux_spec.rb index 043471dec..a2444acd9 100644 --- a/spec/unit/type/file/selinux_spec.rb +++ b/spec/unit/type/file/selinux_spec.rb @@ -66,6 +66,11 @@ Dir.chdir(File.dirname(__FILE__)) { (s = lambda { |f| File.exist?(f) ? require(f @sel.default.must == expectedresult end + it "should return nil for defaults if selinux_ignore_defaults is true" do + @resource[:selinux_ignore_defaults] = :true + @sel.default.must be_nil + end + it "should be able to set a new context" do stat = stub 'stat', :ftype => "foo" @sel.should = %w{newone} |
