Re: [Cedar] doubles on protocol with optional method

20 views
Skip to first unread message

sco...@pivotallabs.com

unread,
Apr 16, 2013, 12:21:05 AM4/16/13
to cedar-...@googlegroups.com, cedar-...@googlegroups.com
That seems reasonable.  Perhaps nice fakes will still return YES for every method?

--Sam

On Apr 15, 2013, at 4:40 PM, belk...@okolodev.org wrote:

Hello!
I need to test behaviour of class if it's delegate doesn't implement some optional method. But spec always fails because of "respondsToSelecor:" is always "YES" for all protocol methods. Even this method is optional.
May be it's better to return "YES" only for stubbed methods? Any ideas?

--
You received this message because you are subscribed to the Google Groups "Cedar Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cedar-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Alexey Belfevich

unread,
Apr 16, 2013, 7:21:20 AM4/16/13
to cedar-...@googlegroups.com
Unfortunately you are right. Both "fake" and "nice fake" returns YES for all protocol methods regardless to method optional or required

Reply all
Reply to author
Forward
0 new messages