Cannot access variables declared outside the with_mock function #193
Comments
@andreea-bogdan: Thanks for reporting this. Could you please test my pull request? Install with |
Should be fixed now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
R version: 3.1.0
testthat: 0.9.1
Small example of the problem
If I am executing the above code snippet through the “Test package” button in RStudio, then I get the error:
Currently it seems it is not possible to reference from the mocked function variables which are declared outside the scope of the with_mock function
The text was updated successfully, but these errors were encountered: