Sha256: 7a7a594bab20b5a2942f4404d3c814d3d07738d710c772f8602696f2e3000ac6

Contents?: true

Size: 499 Bytes

Versions: 3

Compression:

Stored size: 499 Bytes

Contents

require_relative '../../test_helper'

module Msip
  class TsitioTest < ActiveSupport::TestCase

    test "valido" do
      tsitio = Tsitio.create PRUEBA_TSITIO
      assert tsitio.valid?
      tsitio.destroy
    end

    test "no valido" do
      tsitio = Tsitio.new PRUEBA_TSITIO
      tsitio.nombre = ''
      assert_not tsitio.valid?
      tsitio.destroy
    end

    test "existente" do
      tsitio = Msip::Tsitio.where(id: 2).take
      assert_equal tsitio.nombre, "URBANO"
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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