summaryrefslogtreecommitdiff
path: root/spec/unit/key_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-07-02 11:11:35 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-07-02 11:13:54 -0700
commit77f8739a4741e2370e40ec39345a92a6ea393a1a (patch)
treebcf3c9a12556ce1fd18a83cd5f68cd24d36a1180 /spec/unit/key_spec.rb
parent90a74a80196725c4198b6042e8485d68c70777ac (diff)
downloadchef-77f8739a4741e2370e40ec39345a92a6ea393a1a.tar.gz
fix Layout/AlignArgumentslcg/new-chefstyle
this is using: Layout/AlignArguments: Enabled: true EnforcedStyle: with_fixed_indentation the default style can use really excessive whitespace. on starting lines which are already long, it fully indents across to where the arguments start and then begins the line there. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit/key_spec.rb')
-rw-r--r--spec/unit/key_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/unit/key_spec.rb b/spec/unit/key_spec.rb
index 63c5982137..e3d9f8e7ad 100644
--- a/spec/unit/key_spec.rb
+++ b/spec/unit/key_spec.rb
@@ -406,9 +406,9 @@ describe Chef::Key do
it "creates a new key via the API with the fingerprint as the name" do
expect(rest).to receive(:post).with(url,
- { "name" => "12:3e:33:73:0b:f4:ec:72:dc:f0:4c:51:62:27:08:76:96:24:f4:4a",
- "public_key" => key.public_key,
- "expiration_date" => key.expiration_date }).and_return({})
+ { "name" => "12:3e:33:73:0b:f4:ec:72:dc:f0:4c:51:62:27:08:76:96:24:f4:4a",
+ "public_key" => key.public_key,
+ "expiration_date" => key.expiration_date }).and_return({})
key.create
end
end
@@ -424,9 +424,9 @@ describe Chef::Key do
context "when create_key is false" do
it "creates a new key via the API" do
expect(rest).to receive(:post).with(url,
- { "name" => key.name,
- "public_key" => key.public_key,
- "expiration_date" => key.expiration_date }).and_return({})
+ { "name" => key.name,
+ "public_key" => key.public_key,
+ "expiration_date" => key.expiration_date }).and_return({})
key.create
end
end