[Halo] Fix function mocking to not throw error if backup exists
Review Request #293 — Created April 17, 2014 and submitted — Latest diff uploaded
Information | |
---|---|
pprkut | |
Lunr | |
master | |
Reviewers | |
lunr | |
If a test fails that created a function mock, it doesn't unmock it. So rather than fail on a subsequent test as well, check whether the backup still exists and use that instead of trying to create it again.
Example tests