spec/support/feature_helpers.rb
# This makes the sign out requests manually, since it's a delete request
# and would require jquery_ujs and a JavaScript driver.  This involves
# manually following two redirects - one to HTTPS (not sure why) and the
# other to follow the real redirection after signing out back to the root url.
#
# This doesn't actually test the Sign Out link on the page.
This makes the sign out requests manually, since it's a delete request
and would require jquery_ujs and a JavaScript driver.  This involves
manually following two redirects - one to HTTPS (not sure why) and the
other to follow the real redirection after signing out back to the root url.

This doesn't actually test the Sign Out link on the page.
This makes the sign out requests manually since it ' s a delete request and would require jquery_ujs and a JavaScript driver . This involves manually following two redirects - one to HTTPS ( not sure why ) and the other to follow the real redirection after signing out back to the root url . This doesn ' t actually test the Sign Out link on the page .
def feature_sign_out
    page.driver.delete Rails.application.routes.url_helpers.destroy_educator_session_path
    page.driver.delete page.driver.response.location
    page.visit page.driver.response.location
  end
def feature_sign_out page . driver . delete Rails . application . routes . url_helpers . destroy_educator_session_path page . driver . delete page . driver . response . location page . visit page . driver . response . location end
This makes the sign out requests manually, since it's a delete request
and would require jquery_ujs and a JavaScript driver.
This makes the sign out requests manually since it ' s a delete request and would require jquery_ujs and a JavaScript driver .
# Make a delete request # Follow https, make same delete request. # Follow redirection back to root.