Sha256: e6415bf822d271ae72674a4395c36a93c4e274f660f98851f68564bc96c84071
Contents?: true
Size: 488 Bytes
Versions: 3
Compression:
Stored size: 488 Bytes
Contents
require_relative '../../test_helper' module Msip class ClaseTest < ActiveSupport::TestCase test "valido" do clase = Clase.create PRUEBA_CLASE assert clase.valid? clase.destroy! end test "no valido" do clase = Clase.new PRUEBA_CLASE clase.nombre = '' assert_not clase.valid? clase.destroy end test "existente" do clase = Msip::Clase.where(id: 217).take assert_equal clase.nombre, "Caracas" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
msip-2.2.0.alfa3 | test/models/msip/clase_test.rb |
msip-2.2.0.alfa2 | test/models/msip/clase_test.rb |
msip-2.2a2 | test/models/msip/clase_test.rb |