[mocha-developer] Mocking class methods: documentation suggestion

James Mead jamesmead44 at gmail.com
Sat Apr 26 10:24:36 EDT 2008


Cool. I've added a feature request [1] so it doesn't get forgotten.
-- 
James.
http://blog.floehopper.org
http://tumble.floehopper.org

[1]
http://rubyforge.org/tracker/index.php?func=detail&aid=19786&group_id=1917&atid=7480

2008/4/25 Ken Harris <kengruven at gmail.com>:

> Hi James,
>
> A nice user-friendly error message would cover 99% of it.  Truth be
> told, people (including me, I'm not ashamed to say) often don't even
> look at the docs until something goes wrong, and if it went wrong by
> saying
>
>    "RuntimeError: you need to call mocha::setup_some_stuff if you
> want to use mocks outside of a TestCase!  --love, mocha.rb"
>
> then the docs wouldn't really have mattered.
>
> Perhaps since the docs are largely by-example, we could just add
> another example, "Using Mocha outside of TestCase".  It would be about
> 5 lines long.  :-)
>
>
> - Ken
> _______________________________________________
> mocha-developer mailing list
> mocha-developer at rubyforge.org
> http://rubyforge.org/mailman/listinfo/mocha-developer
>


More information about the mocha-developer mailing list