Skip to content
Browse files

Small doc typo fix and add an extra example

  • Loading branch information...
1 parent 4c9e7ce commit 2a13424e130af2b9c9e5bc2813a48dd72410fefb @packetmonkey packetmonkey committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/shoulda/controller/macros.rb
View
3 lib/shoulda/controller/macros.rb
@@ -253,7 +253,8 @@ def should_render_without_layout
# 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

0 comments on commit 2a13424

Please sign in to comment.
Something went wrong with that request. Please try again.