resource#invalidate expects a block
update parameter expectation