Sha256: 47928441bb6a9b2428823eee116fa78059cce588cabebc83324d535f7813f28c

Contents?: true

Size: 568 Bytes

Versions: 3

Compression:

Stored size: 568 Bytes

Contents

require 'test_helper'

module Msip
  class TrivalenteTest < ActiveSupport::TestCase

    test "valido" do
      trivalente = Trivalente.create(
        PRUEBA_TRIVALENTE)
      assert(trivalente.valid?)
      trivalente.destroy
    end

    test "no valido" do
      trivalente = Trivalente.new(
        PRUEBA_TRIVALENTE)
      trivalente.nombre = ''
      assert_not(trivalente.valid?)
      trivalente.destroy
    end

    test "existente" do
      trivalente = Trivalente.where(id: 1).take
      assert_equal(trivalente.nombre, "SIN RESPUESTA")
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
msip-2.2.0.alfa3 test/models/msip/trivalente_test.rb
msip-2.2.0.alfa2 test/models/msip/trivalente_test.rb
msip-2.2a2 test/models/msip/trivalente_test.rb