Commit c0af7478 authored by Stefan Schulte's avatar Stefan Schulte
Browse files

Remove unnecessary stubbing in specs

Since the specs for the type do not use any provider features we do
not have to create a fake provider.
parent 49c64c08
...@@ -4,12 +4,6 @@ require 'spec_helper' ...@@ -4,12 +4,6 @@ require 'spec_helper'
describe Puppet::Type.type(:rpmkey) do describe Puppet::Type.type(:rpmkey) do
before :each do
@provider_class = described_class.provide(:fake) { mk_resource_methods }
@provider_class.stubs(:suitable?).returns true
described_class.stubs(:defaultprovider).returns @provider_class
it "should have :name as its keyattribute" do it "should have :name as its keyattribute" do
described_class.key_attributes.should == [:name] described_class.key_attributes.should == [:name]
end end
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