You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fakes *command* and replaces it with *replacement code* (if code is specified) for the rest of the execution of your test. If no replacement code is specified, then it replaces command by one that echoes stdin of fake. This may be usefull if you need to simulate an environment for you code under test.
388
+
Fakes *command* and replaces it with *replacement code* (if code is specified) for the rest of the execution of your test. If no replacement code is specified, then it replaces command by one that echoes stdin of fake. This may be useful if you need to simulate an environment for you code under test.
389
389
390
390
For instance:
391
391
@@ -520,7 +520,7 @@ overriden by a function. For instance if your code under test relies on *exec* t
520
520
521
521
*fake* stores parameters given to the fake in the global variable *FAKE_PARAMS* so that you can use them inside your fake.
522
522
523
-
It may be usefull if you need to adapt the behavior on the given parameters.
523
+
It may be useful if you need to adapt the behavior on the given parameters.
524
524
525
525
It can also help in asserting the values of these parameters... but this may be quite tricky.
0 commit comments