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
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
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