# Specs and mocks in Ruby 1.9

**URL:** <https://rubytalk.org/t/specs-and-mocks-in-ruby-1-9/43989>\
**Category:** ruby-talk\
**Created:** [23 January 2008 18:55 UTC](https://rubytalk.org/t/specs-and-mocks-in-ruby-1-9/43989 "2008-01-23T18:55:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_Williams](https://avatars.discourse-cdn.com/v4/letter/k/f0a364/32.png) [@Kevin\_Williams](https://rubytalk.org/u/Kevin_Williams)\
**Post date:** [23 January 2008 18:55 UTC](https://rubytalk.org/t/specs-and-mocks-in-ruby-1-9/43989/1 "2008-01-23T18:55:38Z")

</div>

I would like to use RSpec syntax for some code I want to write for Ruby  
1.9. RSpec hasn't been released with a 1.9-compatible release yet. What  
alternatives are there for spec-syntax and mocking in Ruby 1.9? Bacon?  
Mocha?

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![James\_Mead](https://avatars.discourse-cdn.com/v4/letter/j/8baadc/32.png) [@James\_Mead](https://rubytalk.org/u/James_Mead)\
**Post date:** [23 January 2008 21:54 UTC](https://rubytalk.org/t/specs-and-mocks-in-ruby-1-9/43989/2 "2008-01-23T21:54:10Z")

</div>

Mocha v0.5.6 should work with Ruby 1.9. Please let me know if you run into  
any problems.

> **···**
>
> On 23/01/2008, Kevin Williams \<kevwil@gmail.com\> wrote:
> 
> > I would like to use RSpec syntax for some code I want to write for Ruby  
> > 1.9. RSpec hasn't been released with a 1.9-compatible release yet. What  
> > alternatives are there for spec-syntax and mocking in Ruby 1.9? Bacon?  
> > Mocha?
> 
> --  
> James.
> 
> > **[James Mead](https://jamesmead.org/)**
> >
> > Ruby Developer, author of Mocha, and ex-Antarctic Hero.
