lib/rodauth/rails/railtie.rb in rodauth-rails-0.4.1 vs lib/rodauth/rails/railtie.rb in rodauth-rails-0.4.2

- old
+ new

@@ -11,8 +11,13 @@ initializer "rodauth.controller" do ActiveSupport.on_load(:action_controller) do include Rodauth::Rails::ControllerMethods end end + + initializer "rodauth.test" do + # Rodauth uses RACK_ENV to set the default bcrypt hash cost + ENV["RACK_ENV"] = "test" if ::Rails.env.test? + end end end end