Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Rspec-2 for Rails-3

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.markdown
Octocat-spinner-32 Rakefile
Octocat-spinner-32 example_app_template.rb
Octocat-spinner-32 rspec-rails.gemspec

RSpec-2 for Rails-3

Backwards compatibility

None. This is a rewrite of the rspec-rails extension designed to work with rails-3.x and rspec-2.x. It will not work with older versions of either rspec or rails.

Current state

Currently in super-pre-alpha state - explore at your own risk!


gem install rspec-rails --pre

Build from source and install:

git clone git://
cd rspec-dev

This installs the following gems:

  • rspec
  • rspec-core
  • rspec-expectations
  • rspec-mocks
  • rspec-rails

What works

Currently supported:

  • each example runs in its own transaction
    • not yet configurable
      • i.e. no way to turn this off
  • model specs in spec/models
  • controller specs in spec/controllers
  • request specs in spec/requests
    • these wrap rails integration tests
  • rails assertions
  • webrat matchers
  • generators

Known issues

  • no view specs
  • no helper specs
  • no routing specs
Something went wrong with that request. Please try again.