windows doesn't have "ls" on the path so make a test for windows that… #291
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
… tests for a command in the path
I'm submitting a
What is the current behaviour?
it_returns_true_when_found test fails
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
The test passes
What is the motivation / use case for changing the behavior?
All tests should pass. The current tests looks for "ls" which isn't on window's path as an executable. This create a conditional compilation for the test such that the test that looks for "ls" is used on unix/unixy systems and there is a similar test compile for windows.
Please tell us about your environment:
Version (
comtrya --version
): 0.8.0Operating system: Windows 11