With Rspec you can mock objects or functions, for example like this:
expect(my_object).to receive(:my_function).and_return('hello world')
It's also easy to remove mocks for an object:
RSpec::Mocks.space.proxy_for(my_object).reset
Posted by Judith Roth to makandra dev (2020-06-04 12:43)