class ForceSSLOnlyActionTest

Public Instance Methods

test_banana_not_redirects_to_https() click to toggle source
# File actionpack/test/controller/force_ssl_test.rb, line 190
def test_banana_not_redirects_to_https
  get :banana
  assert_response 200
end
test_cheeseburger_redirects_to_https() click to toggle source
# File actionpack/test/controller/force_ssl_test.rb, line 195
def test_cheeseburger_redirects_to_https
  get :cheeseburger
  assert_response 301
  assert_equal "https://test.host/force_ssl_only_action/cheeseburger", redirect_to_url
end