summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-03-11 20:05:51 -0700
committerJay Mundrawala <jdmundrawala@gmail.com>2015-03-20 14:38:05 -0700
commitea98194de5b2c3e11666868eb765ddac76757dcd (patch)
tree5c66774fef03d665f72946ed1916997f77504558
parent9a65eb8552db53fdd0bd93c945e001905ad793e3 (diff)
downloadchef-ea98194de5b2c3e11666868eb765ddac76757dcd.tar.gz
Better formatting for ps_credential spec
-rw-r--r--spec/unit/util/powershell/ps_credential_spec.rb3
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