``` assertFailsWith(IllegalArgumentException.class...
# spek
c
Copy code
assertFailsWith(IllegalArgumentException.class, { myCode() })