Foo.expects(:bar) Foo.bar(:abc => 123, :xyz => 987)
Basically, I want to examine the object passed as an argument for the cropped method to check the value of this object. In my situation, I cannot use Foo.expects(:bar).with({:abc => 123}) because I know that the object will not be equal to each other. I just want to compare the auxiliary value of the argument.
Of course, this is possible, I just cannot find the syntax or strategy here.
ruby mocking mocha stubbing
Alex wayne
source share