7
Bagaimana cara menyetel HTTP_REFERER saat menguji di Rails?
Saya mencoba menguji pengontrol dan saya mendapatkan kesalahan ini. Saya memahami kesalahan tersebut, tetapi tidak tahu cara memperbaikinya. test: on CREATE to :user with completely invalid email should respond with redirect (UsersControllerTest):ActionController::RedirectBackError: No HTTP_REFERER was set in the request to this action, so redirect_to :back could not be called successfully. …