require "test_helper" class MyControllerTest < ActionController::TestCase test "should get profile without login" do get :profile assert_response :redirect end end