diff options
author | Marc A. Paradise <marc.paradise@gmail.com> | 2021-07-15 17:49:18 -0400 |
---|---|---|
committer | Marc A. Paradise <marc.paradise@gmail.com> | 2021-07-15 17:49:18 -0400 |
commit | 3362eef7cad1083d3ffecb55c17543510aac6ff3 (patch) | |
tree | bc81d2ed599e1749adcc76d98c0c5fb33d682f43 /spec | |
parent | 0d04189350f483edfbc725d9d77aee9946e4f72c (diff) | |
download | chef-3362eef7cad1083d3ffecb55c17543510aac6ff3.tar.gz |
rubocop fixes
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/secret_fetcher/azure_key_vault_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/secret_fetcher/azure_key_vault_spec.rb b/spec/unit/secret_fetcher/azure_key_vault_spec.rb index 61af88caad..cf8c5733c9 100644 --- a/spec/unit/secret_fetcher/azure_key_vault_spec.rb +++ b/spec/unit/secret_fetcher/azure_key_vault_spec.rb @@ -27,9 +27,9 @@ describe Chef::SecretFetcher::AzureKeyVault do context "when validating configuration and configuration is missing :vault" do context "and configuration does not have a 'vault'" do - let(:config) { { } } + let(:config) { {} } it "raises a MissingVaultError error on validate!" do - expect{fetcher.validate!}.to raise_error(Chef::Exceptions::Secret::MissingVaultName) + expect { fetcher.validate! }.to raise_error(Chef::Exceptions::Secret::MissingVaultName) end end end @@ -54,7 +54,7 @@ describe Chef::SecretFetcher::AzureKeyVault do context "and an error response is received in the body" do let(:body) { '{ "error" : { "code" : 404, "message" : "secret not found" } }' } it "raises FetchFailed" do - expect{fetcher.fetch("value")}.to raise_error(Chef::Exceptions::Secret::FetchFailed) + expect { fetcher.fetch("value") }.to raise_error(Chef::Exceptions::Secret::FetchFailed) end end |