Sha256: a0336b18eccf4ef09e605e1440930f71c19b18f0e91e4d46a908910413689aad
Contents?: true
Size: 731 Bytes
Versions: 3
Compression:
Stored size: 731 Bytes
Contents
require_relative '../../test_helper' module Msip class OficinaTest < ActiveSupport::TestCase test "valido" do oficina = Oficina.create PRUEBA_OFICINA assert oficina.valid? oficina.destroy end test "no valido" do oficina = Oficina.new PRUEBA_OFICINA oficina.nombre = '' assert_not oficina.valid? oficina.destroy end test "No valido por cantidad de caracteres en observaciones" do oficina= Oficina.new PRUEBA_OFICINA oficina.observaciones= 'X'*5001 assert_not oficina.valid? oficina .destroy end test "existente" do oficina = Msip::Oficina.find(1) assert_equal oficina.nombre, "SIN INFORMACIÓN" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
msip-2.2.0.alfa3 | test/models/msip/oficina_test.rb |
msip-2.2.0.alfa2 | test/models/msip/oficina_test.rb |
msip-2.2a2 | test/models/msip/oficina_test.rb |