summaryrefslogtreecommitdiff
path: root/spec/unit/config_spec.rb
diff options
context:
space:
mode:
authorRanjib Dey <dey.ranjib@gmail.com>2013-03-02 12:17:50 -0800
committerBryan McLellan <btm@opscode.com>2013-04-11 14:37:05 -0700
commit54cb19a7a45f8a83033554ae67bafe8e96bbb72e (patch)
tree7d667eb3a32333d6ca11b84a5a080dca63b3e311 /spec/unit/config_spec.rb
parent0e3afdb294cc59ae02497e016a2ede754bc86309 (diff)
downloadchef-54cb19a7a45f8a83033554ae67bafe8e96bbb72e.tar.gz
removing an_return to as its deprecated
Diffstat (limited to 'spec/unit/config_spec.rb')
-rw-r--r--spec/unit/config_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/config_spec.rb b/spec/unit/config_spec.rb
index 8c68e4985b..96e720dc3a 100644
--- a/spec/unit/config_spec.rb
+++ b/spec/unit/config_spec.rb
@@ -131,7 +131,7 @@ describe Chef::Config do
end
it "should not generate and store a chef server cookie id" do
- Chef::FileCache.should_not_receive(:store).with("chef_server_cookie_id", /\w{40}/).and_return(true)
+ Chef::FileCache.should_not_receive(:store).with("chef_server_cookie_id", /\w{40}/)
Chef::Config.manage_secret_key
end
end
@@ -167,7 +167,7 @@ describe Chef::Config do
describe "class method: openid_providers=" do
it "should not log an appropriate deprecation info message" do
- Chef::Log.should_not_receive(:info).with("DEPRECATION: openid_providers will be removed, please use authorized_openid_providers").and_return(true)
+ Chef::Log.should_not_receive(:info).with("DEPRECATION: openid_providers will be removed, please use authorized_openid_providers")
Chef::Config.openid_providers = %w{opscode.com junglist.gen.nz}
end