Re: [rspec-users] hiiiiiii...........lots of question ..

2012-08-07 Thread Matt Wynne
On 2 Aug 2012, at 06:14, Fahim Patel wrote: > i implement all this question but i dont have knowledge perfectly > ...ok > > explain with example code > tell me what is mock and stub ? > stub_model and mock_model ? > mock and mock_model? > > > what to use first rspec

Re: [rspec-users] hiiiiiii...........lots of question ..

2012-08-02 Thread Curtis Schofield
Hi Fahim These are from wiki Mock http://en.m.wikipedia.org/wiki/Mock_object Stub http://en.m.wikipedia.org/wiki/Test_stub I think of stub as a change to an existing object to isolate specific paths that a method may take. If you are testing a method - it can help to stub out the responses

Re: [rspec-users] hiiiiiii...........lots of question ..

2012-08-02 Thread Ken Chien
Hi Fahim, Have you looked at the documentation here [https://www.relishapp.com/rspec/] ? There are lots of great examples. Regards, Ken On Thu, Aug 2, 2012 at 1:14 AM, Fahim Patel wrote: > i implement all this question but i dont have knowledge perfectly > ...ok > > explain with e