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

RSpec.configure do |config|
  # Add Devise's helpers for controller and view tests
  config.include Devise::Test::ControllerHelpers, type: :controller
  config.include Devise::Test::ControllerHelpers, type: :view
end

Add Devise's helpers to View specs as suggested
Add Devise's helpers to View specs as suggested
