Sha256: 96205eaaf81ea6d2f00aa52e74a95a9f2a6cd28866035519137c3f9a4cc4cd56
Contents?: true
Size: 508 Bytes
Versions: 3
Compression:
Stored size: 508 Bytes
Contents
require_relative '../../test_helper' module Msip class TclaseTest < ActiveSupport::TestCase test "valido" do tclase = Tclase.create PRUEBA_TCLASE assert tclase.valid? tclase.destroy end test "no valido" do tclase = Tclase.new PRUEBA_TCLASE tclase.nombre = '' assert_not tclase.valid? tclase.destroy end test "existente" do tclase = Msip::Tclase.where(id: 'C').take assert_equal tclase.nombre, "CORREGIMIENTO" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
msip-2.2.0.alfa3 | test/models/msip/tclase_test.rb |
msip-2.2.0.alfa2 | test/models/msip/tclase_test.rb |
msip-2.2a2 | test/models/msip/tclase_test.rb |