diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-03-11 20:05:51 -0700 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-03-20 14:38:05 -0700 |
commit | ea98194de5b2c3e11666868eb765ddac76757dcd (patch) | |
tree | 5c66774fef03d665f72946ed1916997f77504558 | |
parent | 9a65eb8552db53fdd0bd93c945e001905ad793e3 (diff) | |
download | chef-ea98194de5b2c3e11666868eb765ddac76757dcd.tar.gz |
Better formatting for ps_credential spec
-rw-r--r-- | spec/unit/util/powershell/ps_credential_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/unit/util/powershell/ps_credential_spec.rb b/spec/unit/util/powershell/ps_credential_spec.rb index e043fd92ec..4a84818eef 100644 --- a/spec/unit/util/powershell/ps_credential_spec.rb +++ b/spec/unit/util/powershell/ps_credential_spec.rb @@ -33,7 +33,8 @@ describe Chef::Util::Powershell::PSCredential do it 'should create the script to create a PSCredential when calling' do allow(ps_credential).to receive(:encrypt).with(password).and_return('encrypted') expect(ps_credential.to_psobject).to eq( - "New-Object System.Management.Automation.PSCredential('#{username}',('encrypted' | ConvertTo-SecureString))") + "New-Object System.Management.Automation.PSCredential("\ + "'#{username}',('encrypted' | ConvertTo-SecureString))") end end end |