Cymen Vig

Software Craftsman

rspec: How to mock a method and return one or more the arguments to the mocked method

Here is our example class:

And here is how we can mock the convert method and return one or more the arguments to convert: