Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialColin Stodd
3,160 PointsError in the Scopes testing "Rails Tutorial"
I'm getting this error, and I cannot seem to find a fix....
1) Error: test_that_/logout_route_opens_the_log_out_page(CustomRoutesTest): NoMethodError: undefined method `assert_redirect_to' for test_that_/logout_route_opens_the_log_out_page(CustomRoutesTest):CustomRoutesTest
test "that /logout route opens the log out page" do
get '/logout'
assert_response :redirect
assert_redirect_to '/'
end
Here is my Github link: https://github.com/cbstodd/treebook
1 Answer
Rodrigo Soares
2,460 PointsMisspelling!
Should be: assert_redirected_to
and not : assert_redirect_to