1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

Small doc typo fix and add an extra example

This commit is contained in:
Evan Sharp 2008-10-06 18:23:17 -04:00
parent 4c9e7ce2c3
commit 2a13424e13

View file

@ -253,7 +253,8 @@ module ThoughtBot # :nodoc:
# Example:
#
# should_redirect_to '"/"'
# should_redirect_to "users_url(@user)"
# should_redirect_to "user_url(@user)"
# should_redirect_to "users_url"
def should_redirect_to(url)
should "redirect to #{url.inspect}" do
instantiate_variables_from_assigns do