Sha256: bd71e7671f57d1175255e2c2e1a02030e7003680248ead807b21316c4898ffcd
Contents?: true
Size: 669 Bytes
Versions: 2
Compression:
Stored size: 669 Bytes
Contents
require 'test_helper' require 'digest/sha1' require 'models/database_authenticatable_test' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
devise-neo4j-2.1.1 | test/overrides/database_authenticatable_test.rb |
devise-neo4j-2.1.0 | test/overrides/database_authenticatable_test.rb |