Sha256: 384408f6b070a03b74ce5f3d6ab91de42f05426af5c58a576dcaae7d7abe37d0

Contents?: true

Size: 350 Bytes

Versions: 9

Compression:

Stored size: 350 Bytes

Contents

# frozen_string_literal: true

require 'test_plugin_helper'

module ForemanAcd
  # Application Definition Model tests
  class AppDefinitionTest < ActiveSupport::TestCase
    should validate_presence_of(:name)
    should validate_uniqueness_of(:name)
    should belong_to(:hostgroup)
    should have_many(:app_instances).dependent(:destroy)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
foreman_acd-0.6.0 test/models/app_definition_test.rb
foreman_acd-0.5.0 test/models/app_definition_test.rb
foreman_acd-0.4.0 test/models/app_definition_test.rb
foreman_acd-0.3.0 test/models/app_definition_test.rb
foreman_acd-0.2.1 test/models/app_definition_test.rb
foreman_acd-0.0.6 test/models/app_definition_test.rb
foreman_acd-0.0.5 test/models/app_definition_test.rb
foreman_acd-0.0.4 test/models/app_definition_test.rb
foreman_acd-0.0.3 test/models/app_definition_test.rb