GitHub PushEvent at 2014-06-14 01:29:30
Repository: Pester
Actor: dlwyatt
Payload: {"shas":[["4935e6c86e75155ee3272f2afa4f33bd21c1d643","a3c99a0d372867ca2daaa0d1663b15b6899f554c@gmail.com","Mocking Updates\n\nThe -ModuleName parameter of the Mock function now specifies the target scope of where the Mock will exist.  In other words, this is where the code that CALLS the mocked command lives, but is not necessarily the module where the mocked command was originally defined.\n\nThis allows us to mock calls to external commmands from within a module.  You can Mock the same command multiple times in different module scopes, if you like.  If a mock exists in the same scope where the command was called, that Mock will be used first, before attempting to use any other accessible Mock (in the Global scope, if one exists.)\n\nAs part of this update, I commented out code that allowed for a syntax of (Mock Module\\Command), because it's a bit confusing, and could possibly get in the way of future expansion.  In that syntax, \"Module\" would refer to the scope where the Mock exists (the calling code), but Module\\Command syntax looks like you're trying to Mock calls to \"Command\" in \"Module\", from somewhere else.\nShould we ever figure out a way to support mocking of fully-qualified calls, we'll still have this syntax available.","Dave Wyatt",true]],"size":1,"ref":"refs/heads/ModuleMockFixes","head":"4935e6c86e75155ee3272f2afa4f33bd21c1d643"}