summaryrefslogtreecommitdiff
path: root/spec/support/shared/unit/user_and_client_shared.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/shared/unit/user_and_client_shared.rb')
-rw-r--r--spec/support/shared/unit/user_and_client_shared.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/support/shared/unit/user_and_client_shared.rb b/spec/support/shared/unit/user_and_client_shared.rb
index c8208c149b..e3862943bc 100644
--- a/spec/support/shared/unit/user_and_client_shared.rb
+++ b/spec/support/shared/unit/user_and_client_shared.rb
@@ -27,7 +27,7 @@ shared_examples_for "user or client create" do
it "creates a new object via the API with a public_key when it exists" do
object.public_key "some_public_key"
- expect(rest_v1).to receive(:post).with(url, payload.merge({:public_key => "some_public_key"})).and_return({})
+ expect(rest_v1).to receive(:post).with(url, payload.merge({ :public_key => "some_public_key" })).and_return({})
object.create
end
@@ -49,7 +49,7 @@ shared_examples_for "user or client create" do
end
it "creates a new object via the API with create_key" do
- expect(rest_v1).to receive(:post).with(url, payload.merge({:create_key => true})).and_return({})
+ expect(rest_v1).to receive(:post).with(url, payload.merge({ :create_key => true })).and_return({})
object.create
end
end
@@ -104,7 +104,7 @@ shared_examples_for "user or client create" do
it "creates a new object via the API with a public_key when it exists" do
object.public_key "some_public_key"
- expect(rest_v0).to receive(:post).with(url, payload.merge({:public_key => "some_public_key"})).and_return({})
+ expect(rest_v0).to receive(:post).with(url, payload.merge({ :public_key => "some_public_key" })).and_return({})
object.create
end
@@ -112,4 +112,3 @@ shared_examples_for "user or client create" do
end # when server API V1 is not valid on the Chef Server receiving the request
end # user or client create
-