How does one test a transaction that is supposed to fail when testing with truffle?
For example, say I was testing an ERC token, in which accounts[0] had a balance of 20. Within a test, I call ERC.transfer(accounts[1], 25, {from: accounts[0]}), hoping to make sure that this would fail. How would I confirm that it did fail?
Sure, I could check that the balances of accounts[0] and accounts[1] do not change - but it seems like there may be a more elegant way to do so. Is there a way to do this?