Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v2.10.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

..
Failed to load latest commit information.
README.md
new_record_matcher.feature
redirect_to_matcher.feature
relation_match_array.feature
render_template_matcher.feature

README.md

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)
Something went wrong with that request. Please try again.