# Ruby/mock and test::unit

**URL:** <https://rubytalk.org/t/ruby-mock-and-test-unit/4790>\
**Category:** ruby-talk\
**Created:** [18 February 2003 08:02 UTC](https://rubytalk.org/t/ruby-mock-and-test-unit/4790 "2003-02-18T08:02:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Takashi\_Kayoko\_Sano](https://avatars.discourse-cdn.com/v4/letter/t/ecd19e/32.png) [@Takashi\_Kayoko\_Sano](https://rubytalk.org/u/Takashi_Kayoko_Sano)\
**Post date:** [18 February 2003 08:02 UTC](https://rubytalk.org/t/ruby-mock-and-test-unit/4790/1 "2003-02-18T08:02:37Z")

</div>

Hi all,

I’m now planning to use Ruby/Mock with Test::Unit. Ruby/Mock  
document says that it works with RubyUnit, but does it work  
well with Test::Unit? Or does it have any dependency on  
RubyUnit?

And also, are there any examples or tutorial-type documentation  
for Ruby/Mock?

Thanks,

Takashi Sano  
Technical Writer/Translator  
Nara, Japan

---

<div class="post-metadata">

**Author:** ![Holden\_Glova](https://avatars.discourse-cdn.com/v4/letter/h/57b2e6/32.png) [@Holden\_Glova](https://rubytalk.org/u/Holden_Glova)\
**Post date:** [18 February 2003 08:06 UTC](https://rubytalk.org/t/ruby-mock-and-test-unit/4790/2 "2003-02-18T08:06:34Z")

</div>

Hello Takashi Sano,

I have used Ruby/Mock with TestUnit quite a bit. I downloaded from the Ruby  
web CVS at the following location:  
[http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/rough/lib/testmock/](http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/rough/lib/testmock/)

It has been renamed to TestMock in alignment with TestUnit. I believe it will  
be included in Ruby 1.8 final. Hope this helps you.

* * *

Signed,  
Holden Glova

> **···**
>
> On Tue, 18 Feb 2003 21:02, Takashi & Kayoko Sano wrote:
> 
> > Hi all,
> > 
> > I’m now planning to use Ruby/Mock with Test::Unit. Ruby/Mock  
> > document says that it works with RubyUnit, but does it work  
> > well with Test::Unit? Or does it have any dependency on  
> > RubyUnit?
> > 
> > And also, are there any examples or tutorial-type documentation  
> > for Ruby/Mock?
> > 
> > Thanks,
> > 
> > Takashi Sano  
> > Technical Writer/Translator  
> > Nara, Japan

---

<div class="post-metadata">

**Author:** ![Takashi\_Kayoko\_Sano](https://avatars.discourse-cdn.com/v4/letter/t/ecd19e/32.png) [@Takashi\_Kayoko\_Sano](https://rubytalk.org/u/Takashi_Kayoko_Sano)\
**Post date:** [18 February 2003 08:52 UTC](https://rubytalk.org/t/ruby-mock-and-test-unit/4790/3 "2003-02-18T08:52:31Z")

</div>

Hi Holden,

Thank you for your prompt reply! I’ll look into that. I’m  
also happy to know that TestMock will be included in the  
ruby 1.8 standard distribution. Thanks!

Takashi Sano

> **···**
>
> Holden Glova [dsafari@paradise.net.nz](mailto:dsafari@paradise.net.nz) wrote:
> 
> > I have used Ruby/Mock with TestUnit quite a bit. I downloaded from  
> > the Ruby  
> > web CVS at the following location:  
> > [http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/rough/lib/testmock/](http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/rough/lib/testmock/)
> > 
> > It has been renamed to TestMock in alignment with TestUnit. I  
> > believe it will  
> > be included in Ruby 1.8 final. Hope this helps you.
