Sha256: 470b9336c56f9551b0128437e3bee6a9c1f660b98bec6ba61c7e09731facdced
Contents?: true
Size: 511 Bytes
Versions: 3
Compression:
Stored size: 511 Bytes
Contents
require_relative '../../test_helper' module Msip class AnexoTest < ActiveSupport::TestCase test "simple" do anexo = Anexo.new PRUEBA_ANEXO anexo.adjunto = File.new(Rails.root + 'db/seeds.rb') assert anexo.valid? end test "no valido 1" do anexo = Anexo.new PRUEBA_ANEXO assert_not anexo.valid? end test "no valido 2" do anexo = Anexo.new PRUEBA_ANEXO anexo.descripcion = nil assert_not anexo.valid? anexo.destroy end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
msip-2.2.0.alfa3 | test/models/msip/anexo_test.rb |
msip-2.2.0.alfa2 | test/models/msip/anexo_test.rb |
msip-2.2a2 | test/models/msip/anexo_test.rb |