Sha256: 53275cdacf55d71010992294d352c55e95f7a5520f56422db991961f16255b06

Contents?: true

Size: 626 Bytes

Versions: 3

Compression:

Stored size: 626 Bytes

Contents

# encoding: utf-8
# author: Christoph Hartmann
# author: Dominik Richter

require 'helper'
require 'inspec/resource'

describe 'Inspec::Resources::RegistryKey' do
  let(:resource) { load_resource('registry_key', 'Task Scheduler', 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Schedule') }
  let(:resource_without_name) { load_resource('registry_key', 'HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Schedule') }

  it 'read reg key with human readable name' do
    _(resource.Start).must_equal 2
  end

  it 'read reg key without human readable name' do
    _(resource_without_name.Start).must_equal 2
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
inspec-0.9.2 test/unit/resources/registry_key_test.rb
inspec-0.9.1 test/unit/resources/registry_key_test.rb
inspec-0.9.0 test/unit/resources/registry_key_test.rb