Remove deprecated get_via_direct and post_via_redirect methods
[rails.git] / test / integration / user_diaries_test.rb
index e6d4327fd08c0ee0054963ac128786d336fef67b..df070dd37d1d3f167b88b700127940e8ec804758 100644 (file)
@@ -6,7 +6,9 @@ class UserDiariesTest < ActionDispatch::IntegrationTest
   def test_showing_create_diary_entry
     user = create(:user)
 
-    get_via_redirect "/diary/new"
+    get "/diary/new"
+    follow_redirect!
+    follow_redirect!
     # We should now be at the login page
     assert_response :success
     assert_template "user/login"