Add support for setting expectations without side effects if a block is given