klajo/mockgyver — Issue #2: separate creating new modules/function from mocking existing ones
Author: klajo
Created: 2012-02-12 18:01:43+00:00
State: open

Today one can use the ?WHEN macro, both to create new modules and override the behaviour of existing ones. This has the benefit that it *is* possible to add new modules or new functions to existing modules, but the downside that misspelled names may go unnoticed.

It is therefore suggested that a new macro is added which shall be used to add new modules/functions, whereas the existing ?WHEN macro is changed to only allow mocking existing functions.