Created by niquola / @niquola
hospital-systems/waveaccess
2013 happydev 2013
iam.tap do |s|
confirmation_key = nil
s.listen :sign_up do |ev|
confirmation_key = ev.confirmation_key
end
s.sign_up!(email, password)
s.confirm!(confirmation_key)
session_key = s.sign_in!(email, password)
s.session_active?(session_key).should be_true
s.sign_out!(session_key)
end