Skip to content

Session Helper (RSpec)

João Guilherme edited this page Apr 7, 2016 · 1 revision

Class

  • This class does a unit test of login

Variables

  • user
  • Is instantiated with the model User, and receives as parameters login and password, which are both strings.

Methods

  • '#current_user?' do

  • Verify if the current_user is equal to @user

  • '#sign_out' do

  • Verify if user could sign out

  • '#signed_in?' do

  • Verify if the previous user have success in sing out, and if the next user can login

Clone this wiki locally