summaryrefslogtreecommitdiffstats
path: root/spec/unit
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-11-25 13:22:19 -0600
committerJames Turnbull <james@lovedthanlost.net>2008-11-26 12:56:12 +1100
commit83cebb56126646ce3e16e70e473f8b4c062c432a (patch)
treeedc5309ed36c4d0fc778840d710954071a41ebc2 /spec/unit
parenta839fe277bcf0e5d71da9987e2608e73f6cca59b (diff)
downloadpuppet-83cebb56126646ce3e16e70e473f8b4c062c432a.tar.gz
puppet-83cebb56126646ce3e16e70e473f8b4c062c432a.tar.xz
puppet-83cebb56126646ce3e16e70e473f8b4c062c432a.zip
Partially fixing #1772 - fixing selinux tests broken by removal of extraneous 'stat' in :file.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/type/file/selinux.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/unit/type/file/selinux.rb b/spec/unit/type/file/selinux.rb
index 6da88db3d..a97f9bcb4 100644
--- a/spec/unit/type/file/selinux.rb
+++ b/spec/unit/type/file/selinux.rb
@@ -4,7 +4,7 @@ Dir.chdir(File.dirname(__FILE__)) { (s = lambda { |f| File.exist?(f) ? require(f
[:seluser, :selrole, :seltype, :selrange].each do |param|
-property = Puppet::Type.type(:file).attrclass(param)
+ property = Puppet::Type.type(:file).attrclass(param)
describe property do
before do
@resource = mock 'resource'
@@ -69,7 +69,6 @@ property = Puppet::Type.type(:file).attrclass(param)
it "should be able to set a new context" do
stat = stub 'stat', :ftype => "foo"
- @resource.expects(:stat).returns stat
@sel.should = %w{newone}
@sel.expects(:set_selinux_context).with("/my/file", ["newone"], param)
@sel.sync