spec/model/password_reset_spec.rb in authenticate-0.2.1 vs spec/model/password_reset_spec.rb in authenticate-0.2.2
- old
+ new
@@ -53,28 +53,28 @@
before(:each) {
subject.password_reset_sent_at = 1.minutes.ago
}
it 'allows password update within time limit' do
- expect(subject.update_password 'chongo').to be_truthy
+ expect(subject.update_password 'password2').to be_truthy
end
it 'clears password reset token' do
- subject.update_password 'chongo'
+ subject.update_password 'password2'
expect(subject.password_reset_token).to be_nil
end
it 'generates a new session token' do
token = subject.session_token
- subject.update_password 'chongo'
+ subject.update_password 'password2'
expect(subject.session_token).to_not eq(token)
end
end
it 'stops password update after time limit' do
subject.password_reset_sent_at = 6.minutes.ago
- expect(subject.update_password 'chongo').to be_falsey
+ expect(subject.update_password 'password2').to be_falsey
end
end
end