“Could not find a valid mapping for #” only on second and successive tests January 5, 2024 by Tarik Add this line to your routes.rb # Devise routes devise_for :users # Or the name of your custom model