There is probably some misunderstanding. I complain, that you stub method `Yast::Linuxrc.keys` and then test its output, which is useless. I think that removing this line and keep only test `expect(Yast::InstFunctions.ignored_features.sort).to eq(['f1','f2','f3','f4','f5','f6','f7'])` is enough and you get nice output from it