Sha256: ed53abc9e529a8583b2ced7c1b696ce7bd3cb511a358acf2f972c59c41be47bc
Contents?: true
Size: 526 Bytes
Versions: 22
Compression:
Stored size: 526 Bytes
Contents
RSpec.shared_examples 'Nyauth::PasswordDigestAbility' do |klass| let(:instance) { create(klass.name.downcase.to_sym, password: password) } describe '#verify_password?' do let(:password) { 'password' } subject { instance.verify_password?(given_password) } context 'when correct password' do let(:given_password) { password } it { is_expected.to be true } end context 'when wrong password' do let(:given_password) { 'invalid' } it { is_expected.to be false } end end end
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
nyauth-0.0.2 | spec/support/models/nyauth/password_digest_ability.rb |
nyauth-0.0.1 | spec/support/models/nyauth/password_digest_ability.rb |