added cookies.permanent.signed[:remember_token] = nil method in sessions_helper.rb
change cookies.permanent.signed[:remember_token] = nil to cookies.permanent.signed[:remember_token] =[nil,nil] method in sessions_helper.rb
on spec_helper.rb change test_sign_in method to use controller.sign_in(user) insted of using controller_current_user = user
Gem.lock