[rspec-users] hiiiiiii...........lots of question ..
curtis at ram9.cc
Thu Aug 2 15:02:46 UTC 2012
These are from wiki
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 that another method may respond with.
A mock is an object that is being used by another object under test that will pretend to be a particular instance with particular responses - a mock object has stubbed methods.
I think this is in general - I can get confused about stub and mock .
Curtis J Schofield
"Creativity can solve anything"
- George Lois
(source: art & copy)
On Aug 1, 2012, at 10:14 PM, Fahim Patel <pafahim at gmail.com> 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 or cucumber??
> which is best rspec or cucumber??
> how to write spec in controller,view and model??
> i m new born baby and i started crying ........stop my crying ..
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users