Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Logical not quite right for install_github_single #388
That's what I get for not testing it... A fix is just being tested by Travis.
@hadley: I need to mock
If I understand correctly, you want to put in a temporary replacement version of
There are some limitations of doing it this way. If you want to call the mock function indirectly (via another function that's not copied to the new environment), it won't work right. To get around this issue, you could copy over everything from the namespace into the new environment, and simply replace the mocked function, but this could be slow if you're running a lot of tests.
All of this is overkill for this one test, but it's a way you could do mocking in general.