Skip to content

Commit

Permalink
Doc change: require rspec/rails, not rspec/core. Closes rspec#330
Browse files Browse the repository at this point in the history
  • Loading branch information
justinko committed Feb 25, 2011
1 parent 15edeb4 commit 7356356
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions features/Upgrade.md
Expand Up @@ -28,7 +28,7 @@ is what you need to change:
end

# rspec-2
require 'rspec/core'
require 'rspec/rails'

RSpec.configure do |config|
...
Expand Down Expand Up @@ -72,7 +72,7 @@ action.
### `view.should render_template`

Rails changed the way it renders partials, so to set an expectation that a
partial gets rendered, you need
partial gets rendered, you need

render
view.should render_template(:partial => "widget/_row")
Expand Down Expand Up @@ -106,7 +106,7 @@ in rspec-rails-2.
Earlier versions of the view generators generated stub_model with `:new_record?
=> true`. That is no longer recognized in rspec-rails-2, so you need to change
this:

stub_model(Widget, :new_record? => true)

to this:
Expand Down

0 comments on commit 7356356

Please sign in to comment.