사용자 로그인을위한 오이 테스트를 작성하고 있습니다.Devise : db에서 사용자 비밀번호를 얻는 방법
나는 그런 시나리오 배경, 즉 추가 한 데이터베이스에 대한 사용자
User.create!(
:email => email,
:password => password,
:password_confirmation => password
)
그래서, 왜 내 순차적 인 단계에서, 내가 @ user.password 전무거야?
@user = User.find_by :email => "[email protected]"
...
fill_in('Email', :with => @user.email)
fill_in('Password', :with => @user.password)
...