Module: Monban::Test::Helpers

Includes:
Warden::Test::Helpers
Defined in:
lib/monban/test/helpers.rb

Overview

Note:

these have only been tested with rspec integration and feature specs

Helpers for integration or feature specs

Since:

  • 0.0.15

Instance Method Summary collapse

Instance Method Details

#sign_in(user) ⇒ Object

Sign a user in

Parameters:

  • user (User)

    user to sign in

Since:

  • 0.0.15



12
13
14
15
16
# File 'lib/monban/test/helpers.rb', line 12

def  user
   user

  user
end

#sign_outObject

Sign a user out

Since:

  • 0.0.15



19
20
21
# File 'lib/monban/test/helpers.rb', line 19

def sign_out
  logout
end