Migrating from Devise to Rodauth, Rspec
If you want to read about migrating a basic Rails application from Devise to Rodauth, go to Basics. Removing Devise When writing controller or feature tests, you usually have a file in spec/support/devise.rb. It includes Devise test helpers, you can use sign_in @user in your RSpec tests. You can remove the file entirely: - RSpec.configure do |config| - config.include Devise::Test::ControllerHelpers, type: :controller - config.include Devise::Test::ControllerHelpers, type: :view - end Updating the specs Sadly, Rodauth doesn’t have an easy helper for the tests and recommends performing the authentication through the normal requests....