Skip to content

Commit

Permalink
more words
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed May 2, 2010
1 parent 4ff11d1 commit ab72884
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions README.markdown
@@ -1,12 +1,9 @@
RSpec-2 for Rails-3
# rspec-rails-2

## Backwards compatibility
## RSpec-2 for Rails-3

This is a complete 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. Many of the APIs from rspec-rails-1 have been carried forward,
however, so upgrading an app from rspec-1/rails-2, while not pain-free, should
not send you to the doctor with a migraine.
rspec-rails-2 brings rspec-2 to rails-3 with lightweight extensions to both
libraries.

## Install

Expand All @@ -20,7 +17,7 @@ This installs the following gems:
* rspec-mocks
* rspec-rails

Configure:
## Configure:

Add this line to the Gemfile:

Expand All @@ -36,13 +33,19 @@ the "rake spec" task.
Note that things are in flux, so some generators generate code that
doesn't work all that well yet.

## What works (and what doesn't)
## Backwards compatibility

This is a complete 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. Many of the APIs from rspec-rails-1 have been carried forward,
however, so upgrading an app from rspec-1/rails-2, while not pain-free, should
not send you to the doctor with a migraine.

rspec-rails is currently in beta. Here is what is working as of now:
## Synopsis

* each example runs in its own transaction
* configurable in Rspec.configure
* see generated spec/spec_helper.rb
* see generated spec/spec\_helper.rb
* model specs in spec/models
* controller specs in spec/controllers
* view specs in spec/views
Expand All @@ -52,17 +55,17 @@ rspec-rails is currently in beta. Here is what is working as of now:
* these wrap rails integration tests
* rails assertions
* assertion-wrapping matchers
* redirect_to
* render_template
* redirect\_to
* render\_template
* webrat matchers
* generators
* run "script/rails g" to see the list of available generators

## Known issues

* no helper specs
* no routing specs
* only works with ActiveRecord
* no helper specs (yet)
* no routing specs (yet)
* only works with ActiveRecord (for now)

# Controller Specs

Expand Down

0 comments on commit ab72884

Please sign in to comment.