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

bats/helpers: Add create_forwarding_script #192

Merged
merged 1 commit into from
Aug 30, 2017
Merged

Conversation

mbland
Copy link
Owner

@mbland mbland commented Aug 29, 2017

This is one of the functions listed #186 as a candidate for migration from tests/template.bats. I realized it would be helpful to have this function while migrating the assertions from tests/scripts/serve.bats in mbland/custom-links per #181.

This commit contains two additional changes:

It removes the --in-process option from stub_program_in_path. It turns out I wasn't using that option anywhere, and I couldn't make any tests fail because it didn't have an effect anyway, since the run function from Bats always launches its arguments in a new subshell.

restore_program_in_path now strips BATS_TEST_BINDIR from the beginning of PATH.

This is one of the functions listed #186 as a candidate for migration
from `tests/template.bats`. I realized it would be helpful to have this
function while migrating the assertions from `tests/scripts/serve.bats`
in mbland/custom-links per #181.

This commit contains two additional changes:

It removes the `--in-process` option from `stub_program_in_path`. It
turns out I wasn't using that option anywhere, and I couldn't make any
tests fail because it didn't have an effect anyway, since the `run`
function from Bats always launches its arguments in a new subshell.

`restore_program_in_path` now strips `BATS_TEST_BINDIR` from the
beginning of `PATH`.
@mbland mbland added this to the v1.7.0 milestone Aug 29, 2017
@mbland mbland self-assigned this Aug 29, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.002%) to 94.607% when pulling ed09765 on create-fwd-script-#186 into 4e8f5f5 on master.

@mbland mbland merged commit 6b9da3b into master Aug 30, 2017
@mbland mbland deleted the create-fwd-script-#186 branch August 30, 2017 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants