```ruby
RSpec.configure do |config|
  # Add Devise's helpers for controller tests
  config.include Devise::TestHelpers, type: :controller
end
```

Fix a Devise deprecation warning in the tests
user
```ruby
RSpec.configure do |config|
  # Add Devise's helpers for controller tests
  config.include Devise::Test::ControllerHelpers, type: :controller
end
```
assistant