Sha256: 2b3eaa7d37cdb21f5e012457f14e369898398e36b59f6d71b394c67835d1a24f
Contents?: true
Size: 697 Bytes
Versions: 3
Compression:
Stored size: 697 Bytes
Contents
require 'test_helper' module Msip class TipoorgTest < ActiveSupport::TestCase PRUEBA_TIPOORG = { nombre: "Tipoorg", fechacreacion: "2021-10-10", created_at: "2021-10-10" } test "valido" do tipoorg = Msip::Tipoorg.create( PRUEBA_TIPOORG) assert(tipoorg.valid?) tipoorg.destroy end test "no valido" do tipoorg = Msip::Tipoorg.new( PRUEBA_TIPOORG) tipoorg.nombre = '' assert_not(tipoorg.valid?) tipoorg.destroy end test "existente" do tipoorg = Msip::Tipoorg.where(id: 1).take assert_equal(tipoorg.nombre, "ORGANIZACIÓN DE LA SOCIEDAD CIVIL (ACOMPAÑADA)") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
msip-2.2.0.alfa3 | test/models/msip/tipoorg_test.rb |
msip-2.2.0.alfa2 | test/models/msip/tipoorg_test.rb |
msip-2.2a2 | test/models/msip/tipoorg_test.rb |