> From the
> http://stackoverflow.com/questions/14987141/rspec-stub-private-method
> 
> I found -
> 
> @foo.should_receive(:start_training).exactly(2).times
> 
> From relish doc I found
> 
> expect(obj).to respond_to(:foo).with(1).argument
> 
> Where those *times*, *exactly*, *argument*, *arguments* methods are
> documented.. I am not finding it... I want to see, what else such varieties
> are present ?

Just found it 
http://rubydoc.info/gems/rspec-expectations/RSpec/Matchers/BuiltIn/RespondTo#argument-instance_method
 
and

http://rubydoc.info/gems/rspec-expectations/RSpec/Matchers/BuiltIn/YieldControl#exactly-instance_method

:)

-- 
================
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/54028052.Xsl8K1GDEu%40linux-wzza.site.
For more options, visit https://groups.google.com/d/optout.

Reply via email to