spec/unit/provider/selmodule.rb in puppet-0.24.9 vs spec/unit/provider/selmodule.rb in puppet-0.25.0
- old
+ new
@@ -14,11 +14,11 @@
@resource = stub("resource", :name => "foo")
@resource.stubs(:[]).returns "foo"
@provider = provider_class.new(@resource)
end
- describe "exists? method" do
+ describe "exists? method" do
it "should find a module if it is already loaded" do
@provider.expects(:command).with(:semodule).returns "/usr/sbin/semodule"
@provider.expects(:execpipe).with("/usr/sbin/semodule --list").yields ["bar\t1.2.3\n", "foo\t4.4.4\n", "bang\t1.0.0\n"]
@provider.exists?.should == :true
end
@@ -43,10 +43,10 @@
end
end
describe "syncversion" do
it "should return :true if loaded and file modules are in sync" do
- @provider.expects(:selmodversion_loaded).returns "1.5.0"
+ @provider.expects(:selmodversion_loaded).returns "1.5.0"
@provider.expects(:selmodversion_file).returns "1.5.0"
@provider.syncversion.should == :true
end
it "should return :false if loaded and file modules are not in sync" do