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:
parent
4c9e7ce2c3
commit
2a13424e13
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue