Stub constants for the duration of a block in MiniTest