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

Make it work with mocks and stubs #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Flamefire
Copy link

@Flamefire Flamefire commented Jun 14, 2019

Fixes #8 by saving the PATH and using command to ignore functions/aliases

Note: Needed to use a subshell as PATH="$_BATSLIB_PATH" command cat - did work for the tests but failed in a real world example and I can't figure out why. Even PATH="$_BATSLIB_PATH" command -v cat outputs the correct path.

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.

Harden code against mocks/stubs
1 participant