Skip to content
This repository

This branch is 1 commit ahead and 885 commits behind master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 new_record_matcher.feature
Octocat-spinner-32 redirect_to_matcher.feature
Octocat-spinner-32 render_template_matcher.feature

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


# delegates to assert_redirected_to
response.should redirect_to(path)


# 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.