Sha256: cbffe91c3908bfa82adb038c876ddf1a0c4ea19da666135b660015d614818c40
Contents?: true
Size: 677 Bytes
Versions: 1
Compression:
Stored size: 677 Bytes
Contents
require 'test_helper' module ActsAsAuthenticTest class MagicColumnsTest < ActiveSupport::TestCase def test_validates_numericality_of_login_count u = User.new u.login_count = -1 assert !u.valid? assert u.errors[:login_count].size > 0 u.login_count = 0 assert !u.valid? assert u.errors[:login_count].size == 0 end def test_validates_numericality_of_failed_login_count u = User.new u.failed_login_count = -1 assert !u.valid? assert u.errors[:failed_login_count].size > 0 u.failed_login_count = 0 assert !u.valid? assert u.errors[:failed_login_count].size == 0 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
authlogic-3.5.0 | test/acts_as_authentic_test/magic_columns_test.rb |