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

Can not stub commands with a period #9

Closed
toote opened this issue Sep 20, 2022 · 0 comments · Fixed by #11
Closed

Can not stub commands with a period #9

toote opened this issue Sep 20, 2022 · 0 comments · Fixed by #11

Comments

@toote
Copy link

toote commented Sep 20, 2022

When trying to stub commands with a period you get an error as follows:

   (from function `stub' in file /usr/local/lib/bats/bats-mock/stub.bash, line 11,
    in test file FILE, line X)
     `stub command.extension \' failed
   /usr/local/lib/bats/bats-mock/stub.bash: line 11: export: `COMMAND.EXTENSION_STUB_PLAN=/tmp/command.extension-stub-plan': not a valid identifier

Solution is probably quite easy (just replace the period in the command to create a valid variable name

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 a pull request may close this issue.

1 participant