Sha256: 34719ce12a4eedfefeb3624a7c6911b489ddb9ede70ff7af275acbe668584977

Contents?: true

Size: 609 Bytes

Versions: 3

Compression:

Stored size: 609 Bytes

Contents

require_relative '../../test_helper'

module Msip
  class OrgsocialTest < ActiveSupport::TestCase

    test "valido" do
      grupoper = Msip::Grupoper.create PRUEBA_GRUPOPER
      assert grupoper.valid?
      grupoper.save!
      orgsocial = Msip::Orgsocial.new PRUEBA_ORGSOCIAL
      orgsocial.grupoper = grupoper
      assert orgsocial.valid?
      orgsocial.save!
      orgsocial.destroy
      grupoper.destroy
    end

    test "no valido" do
      orgsocial = Msip::Orgsocial.new PRUEBA_ORGSOCIAL
      orgsocial.grupoper = nil
      assert !orgsocial.valid?
      orgsocial.destroy
    end


  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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