summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xspec/unit/provider/selboolean.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/spec/unit/provider/selboolean.rb b/spec/unit/provider/selboolean.rb
index 8fd97a6b1..95d372ef3 100755
--- a/spec/unit/provider/selboolean.rb
+++ b/spec/unit/provider/selboolean.rb
@@ -12,13 +12,11 @@ describe provider_class do
end
it "should return :on when getsebool returns on" do
- @resource.stubs(:[]).returns "foo"
@provider.expects(:getsebool).with("foo").returns "foo --> on\n"
@provider.value.should == :on
end
it "should return :off when getsebool returns on" do
- @resource.stubs(:[]).returns "foo"
@provider.expects(:getsebool).with("foo").returns "foo --> off\n"
@provider.value.should == :off
end
@@ -29,7 +27,6 @@ describe provider_class do
end
it "should call execpipe with -P when updating persistent boolean setting" do
- @resource.stubs(:[]).returns "foo"
@resource.stubs(:[]).with(:persistent).returns :true
@provider.expects(:execpipe).with("/usr/sbin/setsebool -P foo off")
@provider.value = :off