Skip to content

Document stubbing with methods / return values passed as a hash

gitlab-qa-bot requested to merge github/fork/booch/master into master

Created by: booch

I found that this is valid syntax, but not documented anywhere:

receiver.stub(:message => :return_value, :message_2 => :return_value_2)

So the attached patch adds an item to the method_stubs/simple_return_value feature to document such usage.

Merge request reports