The error look like: Failure/Error: expect(Yast::SnapperDbus.unescape("hello")).to eq("hello") NameError: uninitialized constant Yast::SnapperDbus I would expect something like: invalid multibyte escape: /(\\|[\x80-\xff])/ in SnapperDbus.rb line ...