Sha256: 67c03e35a0b15fb398f6308c7173e9efd1bb41f6797d909399ebd8676d374042
Contents?: true
Size: 483 Bytes
Versions: 38
Compression:
Stored size: 483 Bytes
Contents
require 'test_puppet_helper' module ForemanPuppet class HostCounterTest < ActiveSupport::TestCase def hosts_count(association) ::HostCounter.new(association) end let(:environment) { FactoryBot.create(:environment) } test 'it should get number of hosts associated to environment' do FactoryBot.create(:host, :with_puppet_enc, environment: environment) count = hosts_count(:environment) assert_equal 1, count[environment] end end end
Version data entries
38 entries across 38 versions & 1 rubygems