Copied yast_stubs verbatim from yast-registration
Extended and used yast stubs to make test pass.

rspec 3 or 2.99 dislike Object.any_instance.stub