Skip to content

Commit 8f9299a

Browse files
committed
Merge branch 'master' of github.com:ryanplusplus/mach.lua
2 parents ec8884c + 13562f4 commit 8f9299a

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ f:should_be_called_with(mach.any, 42):
205205

206206
## Ignoring Other Calls
207207

208-
```javascript
208+
```lua
209209
local mach = require 'mach'
210210

211211
local f = mach.mock_function('f')
@@ -216,7 +216,7 @@ f:should_be_called():and_other_calls_should_be_ignored():when(function()
216216
end)
217217
```
218218

219-
```javascript
219+
```lua
220220
local mach = require 'mach'
221221

222222
local f = mach.mock_function('f')
@@ -227,6 +227,19 @@ f:should_be_called():with_other_calls_ignored():when(function()
227227
end)
228228
```
229229

230+
## Ignoring All Calls
231+
232+
```lua
233+
local mach = require 'mach'
234+
235+
local f = mach.mock_function('f')
236+
237+
mach.ignore_mocked_calls_when(function()
238+
f()
239+
f(1, 2, 3)
240+
end)
241+
```
242+
230243
## Flexible Syntax
231244

232245
```lua

0 commit comments

Comments
 (0)