Hi, >From the doc https://relishapp.com/rspec/rspec-mocks/v/3-0/docs/setting-constraints/matching-arguments
I found with(duck_type(:each)) will match call like this - foo([]) But the same can be done also with(instance_of(Array)) -> foo([]) What is the difference between these 2 ? Regards, Arup Rakshit -- You received this message because you are subscribed to the Google Groups "rspec" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/CAKxHnE07XU87uRisRMiPn39ms0TLDF8hxT1JTgTE1EK1QFVziQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
