follow_redirect!

# expect there are more than a redirection after the request
subject do
  get "/some_url"
  follow_redirect!
end

it do
  expect(subject).to redirect_to expected_redirection_path
end

Reference

results matching ""

    No results matching ""