Mocha, the mocking library we use, has a large number of parameter matchers that you can use. This can be written as `@provider.expects(:aptget).with(includes("--no-install-recommends"))`.