require 'spec_helper'

describe 'crypto_win::event_logging' do
  let :pre_condition do
    'include ::crypto_win'
  end

  on_supported_os(facterversion: '2.4').each do |os, os_facts|
    context "on #{os}" do
      let(:facts) { os_facts }

      context 'passes with minimal params' do
        it {
          is_expected.to contain_registry_value('EventLogging').with(
            'ensure' => 'present',
            'path'   => 'HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\EventLogging',
            'type'   => 'dword',
            'data'   => 3,
          )
        }

        it { is_expected.to compile }
      end
    end
  end
end
