diff options
| author | Sean E. Millichamp <sean@bruenor.org> | 2008-10-07 15:00:49 -0400 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2008-10-08 14:01:24 +1100 |
| commit | a3f34f94420a2e14716aaffcc0aa112803895e46 (patch) | |
| tree | 7e7c040c86f29a89a7c70b2de6117fee2f34d12c /spec | |
| parent | 307260f5493b54c4d9435dd8e71b30d5c08edb05 (diff) | |
| download | puppet-a3f34f94420a2e14716aaffcc0aa112803895e46.tar.gz puppet-a3f34f94420a2e14716aaffcc0aa112803895e46.tar.xz puppet-a3f34f94420a2e14716aaffcc0aa112803895e46.zip | |
Removal of redundant lines from unit test
Diffstat (limited to 'spec')
| -rwxr-xr-x | spec/unit/provider/selboolean.rb | 3 |
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 |
