Sha256: d423b9f7c809cba8f17978a7a23d64fec89a1cb6b7abc1c9c5b2fc2e09fd2ba9
Contents?: true
Size: 505 Bytes
Versions: 40
Compression:
Stored size: 505 Bytes
Contents
# -*- encoding : utf-8 -*- describe Card::Auth do it 'should authenticate user' do assert_equal Card::Auth[ 'joe@user.com' ].id, Card::Auth.authenticate('joe@user.com', 'joe_pass') end it 'should authenticate user despite whitespace' do assert_equal Card::Auth[ 'joe@user.com' ].id, Card::Auth.authenticate(' joe@user.com ', ' joe_pass ') end it 'should authenticate user with weird email capitalization' do assert Card::Auth.authenticate('JOE@user.com', 'joe_pass') end end
Version data entries
40 entries across 40 versions & 2 rubygems