# Documentation for mocks?

**URL:** <https://www.ruby-forum.com/t/documentation-for-mocks/63742>\
**Category:** Rails\
**Created:** [January 21, 2006, 4:09pm UTC](https://www.ruby-forum.com/t/documentation-for-mocks/63742 "2006-01-21T16:09:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulbutcher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Post date:** [January 21, 2006, 4:09pm UTC](https://www.ruby-forum.com/t/documentation-for-mocks/63742/1 "2006-01-21T16:09:11Z")

</div>

Is there any documentation about how mock objects work in RoR,  
specifically exactly how one should use the test/mocks directory. Is it  
just me being incompetent searching for it, or hasn’t this been  
documented yet?

Thanks in advance for your help!

paul.butcher-\>msgCount++

Snetterton, Castle Combe, Cadwell Park…  
Who says I have a one track mind?

---

<div class="post-metadata">

**Author:** ![paulbutcher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Post date:** [January 21, 2006, 7:33pm UTC](https://www.ruby-forum.com/t/documentation-for-mocks/63742/2 "2006-01-21T19:33:35Z")

</div>

On 21 Jan 2006, at 15:09, Paul B. wrote:

> Is there any documentation about how mock objects work in RoR,  
> specifically exactly how one should use the test/mocks directory.  
> Is it  
> just me being incompetent searching for it, or hasn’t this been  
> documented yet?

This any good to you?

[http://scott.elitists.net/users/scott/posts/mockery](http://scott.elitists.net/users/scott/posts/mockery)

They’re pretty simple to be honest. Although, if you think they need  
better documentation, you know what you could do… 🙂

---

<div class="post-metadata">

**Author:** ![paulbutcher](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@paulbutcher](https://www.ruby-forum.com/u/paulbutcher)\
**Post date:** [January 21, 2006, 8:24pm UTC](https://www.ruby-forum.com/t/documentation-for-mocks/63742/3 "2006-01-21T20:24:01Z")

</div>

Paul R. wrote:

> This any good to you?
> 
> [http://scott.elitists.net/users/scott/posts/mockery](http://scott.elitists.net/users/scott/posts/mockery)

It’s a start, certainly 🙂

> They’re pretty simple to be honest. Although, if you think they need  
> better documentation, you know what you could do… 🙂

I’ll wait until I actually understand what’s going on before I write  
anything, but yes, on the face of it, they look pretty straightforward.

Thanks for the pointer!

paul.butcher-\>msgCount++

Snetterton, Castle Combe, Cadwell Park…  
Who says I have a one track mind?
