There shouldn't need to be a mock here. I think you can simply do `@resource[:install_options] = "--no-install-recommends"`