Sha256: b5dcc818c71b8affeb9aff99bf1ba52a69997d090dc1e2209445dbe6831cfb1f

Contents?: true

Size: 467 Bytes

Versions: 33

Compression:

Stored size: 467 Bytes

Contents

rspec-rails offers a number of custom matchers, most of which are
rspec-compatible wrappers for Rails' assertions.

### redirects

    # delegates to assert_redirected_to
    response.should redirect_to(path)

### templates

    # delegates to assert_template
    response.should render_template(template_name)

### assigned objects

    # passes if assigns(:widget) is an instance of Widget
    # and it is not persisted
    assigns(:widget).should be_a_new(Widget)

Version data entries

33 entries across 28 versions & 5 rubygems

Version Path
rails-uploader-0.0.1 vendor/bundle/ruby/1.9.1/gems/rspec-rails-2.10.1/features/matchers/README.md
rspec-rails-2.10.1 features/matchers/README.md
rspec-rails-2.10.0 features/matchers/README.md
rspec-rails-2.9.0 features/matchers/README.md
rspec-rails-2.9.0.rc2 features/matchers/README.md
rspec-rails-2.8.1 features/matchers/README.md
rspec-rails-2.8.0 features/matchers/README.md
rspec-rails-2.8.0.rc2 features/matchers/README.md
rspec-rails-2.8.0.rc1 features/matchers/README.md
rspec-rails-2.7.0 features/matchers/README.md
rspec-rails-2.7.0.rc1 features/matchers/README.md
rspec-rails-2.6.1 features/matchers/README.md
rspec-rails-2.6.1.beta1 features/matchers/README.md