this is quite hard to read and also old syntax. If you want except reception, then write it as
```
before do
  expect(Yast::Mode).to receive(:installation).and_return(true)
end
```
but maybe better use simple mocking
```
  Yast::Mode.stub(:installation) { true }
```