summaryrefslogtreecommitdiff
path: root/spec/unit/key_spec.rb
diff options
context:
space:
mode:
authortylercloke <tylercloke@gmail.com>2015-04-23 13:35:58 -0700
committertylercloke <tylercloke@gmail.com>2015-04-28 14:24:57 -0700
commit2c07a07d816937c5228b67836782a19fb7e7a30b (patch)
tree7c5febef7c1b63a3cd720e3562aa3000e84a8f4e /spec/unit/key_spec.rb
parentafa4b9e4034628bf5a4f337cf57cfa657df6ec3d (diff)
downloadchef-2c07a07d816937c5228b67836782a19fb7e7a30b.tar.gz
Implemented `knife user key create` and `knife client key create`.
Implemented using a common service class that contains most of the actual functionality outside of parsing and inheriting Chef::Knife.
Diffstat (limited to 'spec/unit/key_spec.rb')
-rw-r--r--spec/unit/key_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/key_spec.rb b/spec/unit/key_spec.rb
index a2bc6dcdd4..8ef7d24f21 100644
--- a/spec/unit/key_spec.rb
+++ b/spec/unit/key_spec.rb
@@ -520,15 +520,15 @@ EOS
context "when updating a user key" do
it_should_behave_like "update key" do
- let(:url) { "users/#{key.actor}/keys/#{key.name}" }
- let(:key) { user_key }
+ let(:url) { "users/#{key.actor}/keys/#{key.name}" }
+ let(:key) { user_key }
end
end
context "when updating a client key" do
it_should_behave_like "update key" do
- let(:url) { "clients/#{client_key.actor}/keys/#{key.name}" }
- let(:key) { client_key }
+ let(:url) { "clients/#{client_key.actor}/keys/#{key.name}" }
+ let(:key) { client_key }
end
end