summaryrefslogtreecommitdiff
path: root/spec/unit/api_client
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-01-29 14:17:47 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2014-01-29 14:17:47 -0800
commitb19b7d000887209f9d8dc1dc6aa468a0497a7391 (patch)
tree68d1eb6c136df20c2800f1dddb4e2c1ed5d75a42 /spec/unit/api_client
parentb5c9c6afdfd83fe3f1bf4c991daffeff94b49750 (diff)
downloadchef-b19b7d000887209f9d8dc1dc6aa468a0497a7391.tar.gz
s/stub!/stub/g
fix deprecation warnings
Diffstat (limited to 'spec/unit/api_client')
-rw-r--r--spec/unit/api_client/registration_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/api_client/registration_spec.rb b/spec/unit/api_client/registration_spec.rb
index 0d21730664..be98c86e55 100644
--- a/spec/unit/api_client/registration_spec.rb
+++ b/spec/unit/api_client/registration_spec.rb
@@ -53,7 +53,7 @@ describe Chef::ApiClient::Registration do
let(:http_mock) { mock("Chef::REST mock") }
before do
- registration.stub!(:http_api).and_return(http_mock)
+ registration.stub(:http_api).and_return(http_mock)
end
it "creates a new ApiClient on the server using the validator identity" do
@@ -103,7 +103,7 @@ describe Chef::ApiClient::Registration do
describe "when writing the private key to disk" do
before do
- registration.stub!(:private_key).and_return('--begin rsa key etc--')
+ registration.stub(:private_key).and_return('--begin rsa key etc--')
end
# Permission read via File.stat is busted on windows, though creating the
@@ -128,7 +128,7 @@ describe Chef::ApiClient::Registration do
let(:http_mock) { mock("Chef::REST mock") }
before do
- registration.stub!(:http_api).and_return(http_mock)
+ registration.stub(:http_api).and_return(http_mock)
end
it "creates the client on the server and writes the key" do