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 #2

Closed
wants to merge 1 commit into from

Conversation

Flamefire
Copy link

Fixes ztombol#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.

@martin-schulze-vireso
Copy link
Member

I am closing this in favor of #9, as I can't add code here (due to the master branch?).

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
2 participants