Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify/fix join-path. #325

Merged
merged 1 commit into from
Dec 29, 2016
Merged

Simplify/fix join-path. #325

merged 1 commit into from
Dec 29, 2016

Conversation

rkeithhill
Copy link
Collaborator

Fix #268 and add some initial Pester tests.

Fix #268 and add some initial Pester tests.
@rkeithhill rkeithhill merged commit b6f0625 into dahlbyk:master Dec 29, 2016
@rkeithhill rkeithhill deleted the rkeithhill/is268-fix-get-sshPath branch December 29, 2016 02:30
Get-SshPath | Should BeExactly $Home\.ssh\id_rsa
}
It 'Returns the correct path given a filename' {
Get-SshPath mykey | Should BeExactly $Home\.ssh\mykey
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that these path expectations will likely fail on not-Windows.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It shouldn't but I will test it. PowerShell itself handles both \ and / as path sep chars. Issues arise though when a path is passed down to a native application.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK so PowerShell internally handles both just fine but when you "compare exactly", the expected has to be correct. Submitting a PR to fix this.

@dahlbyk dahlbyk mentioned this pull request Dec 29, 2016
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants