Sha256: 3fe20c8573d2a322882d29bfef15af173cfcc979f1c374a55b4a48a997fe9bf2

Contents?: true

Size: 813 Bytes

Versions: 7

Compression:

Stored size: 813 Bytes

Contents

# Upgrade to rspec-rails-2

## Controller specs

### islation from view templates

By default, controller specs do _not_ render view templates. This keeps
controller specs isolated from the content of views and their requirements.

NOTE that the template must exist, but it will not be rendered.  This is
different from rspec-rails-1.x, in which the template didn't need to exist, but
ActionController makes a number of new decisions in Rails 3 based on the
existence of the template. To keep the RSpec code free of monkey patches, and
to keep the rspec user experience simpler, we decided that this would be a fair
trade-off.

## View specs

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

    render
    view.should render_template(:partial => "widget/_row")

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rspec-rails-2.0.0.beta.19 Upgrade.markdown
rspec-rails-2.0.0.beta.18 Upgrade.markdown
rspec-rails-2.0.0.beta.17 Upgrade.markdown
rspec-rails-2.0.0.beta.16 Upgrade.markdown
rspec-rails-2.0.0.beta.15 Upgrade.markdown
rspec-rails-2.0.0.beta.14.2 Upgrade.markdown
rspec-rails-2.0.0.beta.14.1 Upgrade.markdown