Commit 320758b6 authored by Stefan Schulte's avatar Stefan Schulte
Browse files

Remove unnecessary stubbing

Because we never really execute rpm and are only testing the provider we
are never asked suitable? so we can just drop a few stubs of FileTest
parent 53283d37
......@@ -6,8 +6,6 @@ describe Puppet::Type.type(:rpmkey).provider(:rpm) do
before :each do
Puppet::Type.type(:rpmkey).stubs(:defaultprovider).returns described_class
FileTest.stubs(:file?).with('/usr/bin/rpm').returns true
FileTest.stubs(:executable?).with('/usr/bin/rpm').returns true
describe ".instances" do
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment