summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xspec/unit/provider/mount/parsed_spec.rb1
-rwxr-xr-xspec/unit/provider/ssh_authorized_key/parsed_spec.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/provider/mount/parsed_spec.rb b/spec/unit/provider/mount/parsed_spec.rb
index 7d2e8a84c..3d37fc72e 100755
--- a/spec/unit/provider/mount/parsed_spec.rb
+++ b/spec/unit/provider/mount/parsed_spec.rb
@@ -51,6 +51,7 @@ module ParsedMountTesting
#hash[:provider] = @provider_class.name
fakeresource = stub :type => :mount, :name => hash[:name]
+ fakeresource.class.stubs(:key_attributes).returns([:name])
fakeresource.stubs(:[]).with(:name).returns(hash[:name])
fakeresource.stubs(:should).with(:target).returns(nil)
diff --git a/spec/unit/provider/ssh_authorized_key/parsed_spec.rb b/spec/unit/provider/ssh_authorized_key/parsed_spec.rb
index 11e9233e0..2e5be165a 100755
--- a/spec/unit/provider/ssh_authorized_key/parsed_spec.rb
+++ b/spec/unit/provider/ssh_authorized_key/parsed_spec.rb
@@ -104,6 +104,7 @@ describe provider_class do
before :each do
@resource = stub("resource", :name => "foo")
@resource.stubs(:[]).returns "foo"
+ @resource.class.stubs(:key_attributes).returns( [:name] )
@provider = provider_class.new(@resource)
provider_class.stubs(:filetype).returns(Puppet::Util::FileType::FileTypeRam)