method

follow_redirect!

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 1 note - Class: ActionController::Integration::Session

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

These similar methods exist in v7.1.3.2:

follow_redirect!() public

Follow a single redirect response. If the last response was not a redirect, an exception will be raised. Otherwise, the redirect is performed on the location header.

Show source
Register or log in to add new notes.
December 5, 2012 - (v3.2.8)
0 thanks

you will be redirect to signin, when you want to create post before signin

code

def test_should_signin_first_before_add_post
  get "/admin/posts/new"
  follow_redirect!
end