Sha256: 847890950a51d9fb26899fada892d8f41f2820a1be5d4e81694d96445d038cd8
Contents?: true
Size: 624 Bytes
Versions: 4
Compression:
Stored size: 624 Bytes
Contents
require 'test_helper' require 'digest/sha1' class DatabaseAuthenticatableTest < ActiveSupport::TestCase undef :test_should_run_validations_even_when_current_password_is_invalid_or_blank # looks like neo4j wants to run the password validation first test 'should run validations even when current password is invalid or blank' do user = UserWithValidation.create!(valid_attributes) user.save assert user.persisted? assert_not user.update_with_password(:username => "") assert_match "usertest", user.reload.username assert_match "can't be blank", user.errors[:current_password].join end end
Version data entries
4 entries across 4 versions & 1 rubygems