On Friday, July 04, 2014 09:02:59 PM Xavier Shay wrote: > Sorry I don't understand what you are either asking or saying. > > > If an object dynamically responds to a message via #method_missing, > > *but does not indicate this via #respond_to?*, then this matcher will > give you false results. > > Correct. If an object is doing this, it has incorrectly implemented > method_missing. >
I would like to understand, why my test passed, as I didn't implement #respond_to?. -- ================ Regards, Arup Rakshit ================ Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. --Brian Kernighan -- 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/1902694.Xt5dBPB9A5%40linux-wzza.site. For more options, visit https://groups.google.com/d/optout.
