Please remove this file and add this
config.include Devise::TestHelpers, type: :controller 
at spec_helper.rb