Sha256: 967d70ccc9153263f6c9230178bcf066b490fb492ea1a6e6c90625a69c30bad1
Contents?: true
Size: 1.14 KB
Versions: 3
Compression:
Stored size: 1.14 KB
Contents
require_relative '../../test_helper' module Msip class BitacoraTest < ActiveSupport::TestCase test "valido" do bitacora = Msip::Bitacora.create PRUEBA_BITACORA assert bitacora.valid? bitacora.destroy end test "no valido por falta de fecha" do bitacora = Msip::Bitacora.new PRUEBA_BITACORA bitacora.fecha = nil assert_not bitacora.valid? bitacora.destroy end test "no valido por falta de fecha 2" do bitacora = Msip::Bitacora.new PRUEBA_BITACORA bitacora.fecha = '' assert_not bitacora.valid? bitacora.destroy end test "no valido por ip larga" do bitacora = Msip::Bitacora.new PRUEBA_BITACORA bitacora.ip = 'x'*600 assert_not bitacora.valid? bitacora.destroy end test "no valido por modelo largo" do bitacora = Msip::Bitacora.new PRUEBA_BITACORA bitacora.modelo = 'x'*6000 assert_not bitacora.valid? bitacora.destroy end test "valido sin detalle" do bitacora = Msip::Bitacora.create PRUEBA_BITACORA bitacora.detalle = nil assert bitacora.valid? bitacora.destroy end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
msip-2.2.0.alfa3 | test/models/msip/bitacora_test.rb |
msip-2.2.0.alfa2 | test/models/msip/bitacora_test.rb |
msip-2.2a2 | test/models/msip/bitacora_test.rb |