Displaying 1 result from an estimated 1 matches for "any_xxx".
Did you mean:
any_ext
2008 Mar 08
3
should_receive(:foo).with(any_object)
...m.should_receive(:random_item).with(any_object,
any_number).at_least(1).times.and_return(mock_model(Item))
(the first any_object parameter is only in there for demonstration purposes ;) )
And if I would like to it''s possible to get the actual value which was
passed to as an argument with: any_xxx.object
Ok, these any_xxx things behave somehow like a singleton but it''s no
problem at all to instantiate more of them to use many of them and
afterwards get the actual value of any of them.
So long. My question is: Is this too much effort? Is something like
this already built into RSpec,...