diff options
author | Stig Sandbeck Mathisen <ssm@debian.org> | 2014-09-07 10:14:36 +0200 |
---|---|---|
committer | Stig Sandbeck Mathisen <ssm@debian.org> | 2014-09-07 10:14:36 +0200 |
commit | d4b83be375ac1dead058e091191ee7c7b7c24c8a (patch) | |
tree | dc825687392ae3068de5b764be60c53122d9e02a /spec/unit/settings/autosign_setting_spec.rb | |
parent | 229cbb976fe0f70f5f30548b83517b415840f9bb (diff) | |
parent | 1681684857c6e39d60d87b0b3520d8783977ceff (diff) | |
download | puppet-upstream/3.7.0.tar.gz |
Imported Upstream version 3.7.0upstream/3.7.0
Diffstat (limited to 'spec/unit/settings/autosign_setting_spec.rb')
-rw-r--r-- | spec/unit/settings/autosign_setting_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/settings/autosign_setting_spec.rb b/spec/unit/settings/autosign_setting_spec.rb index 0c8184c8a..0dbfe4ecb 100644 --- a/spec/unit/settings/autosign_setting_spec.rb +++ b/spec/unit/settings/autosign_setting_spec.rb @@ -73,7 +73,7 @@ describe Puppet::Settings::AutosignSetting do describe "converting the setting to a resource" do it "converts the file path to a file resource" do path = File.expand_path('/path/to/autosign.conf') - settings.stubs(:value).with('autosign').returns(path) + settings.stubs(:value).with('autosign', nil, false).returns(path) Puppet::FileSystem.stubs(:exist?).with(path).returns true Puppet.stubs(:features).returns(stub(:root? => true, :microsoft_windows? => false)) @@ -91,7 +91,7 @@ describe Puppet::Settings::AutosignSetting do end it "returns nil when the setting is a boolean" do - settings.stubs(:value).with('autosign').returns 'true' + settings.stubs(:value).with('autosign', nil, false).returns 'true' setting.mode = '0664' setting.owner = 'service' |