Sha256: 0bdfc9fb43fd2a1d5e875692f55df1cd410ab2c48a985724dc56ce93b32ca970
Contents?: true
Size: 559 Bytes
Versions: 3
Compression:
Stored size: 559 Bytes
Contents
require_relative '../../test_helper' module Msip class TrelacionTest < ActiveSupport::TestCase test "valido" do trelacion = Trelacion.create PRUEBA_TRELACION assert trelacion.valid? trelacion.destroy! end test "no valido" do trelacion = Trelacion.new PRUEBA_TRELACION trelacion.nombre = '' assert_not trelacion.valid? trelacion.destroy! end test "existente" do trelacion = Msip::Trelacion.where(id: 'SI').take assert_equal trelacion.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/trelacion_test.rb |
msip-2.2.0.alfa2 | test/models/msip/trelacion_test.rb |
msip-2.2a2 | test/models/msip/trelacion_test.rb |