Sha256: 5c271a6838e50e27f9637da0b87a65cd021542402370711a2d92f70088cc8f27
Contents?: true
Size: 560 Bytes
Versions: 3
Compression:
Stored size: 560 Bytes
Contents
require_relative '../../test_helper' module Msip class MunicipioTest < ActiveSupport::TestCase test "valido" do municipio = Municipio.create PRUEBA_MUNICIPIO assert municipio.valid? municipio.destroy end test "no valido" do municipio = Municipio.new PRUEBA_MUNICIPIO municipio.nombre = '' assert_not municipio.valid? municipio.destroy end test "existente" do municipio = Msip::Municipio.where(id:25).take assert_equal municipio.nombre, "Bolivariano Libertador" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
msip-2.2.0.alfa3 | test/models/msip/municipio_test.rb |
msip-2.2.0.alfa2 | test/models/msip/municipio_test.rb |
msip-2.2a2 | test/models/msip/municipio_test.rb |