Sha256: f6364ab68d600988fc2d5e3b70ccd7d59a5b547449de58f961bf96c49889dc2a

Contents?: true

Size: 713 Bytes

Versions: 24

Compression:

Stored size: 713 Bytes

Contents

# encoding: utf-8
# author: Thomas Cate

require 'helper'
require 'inspec/resource'

describe 'Inspec::Resources::GrubConfig' do

  it 'verify kernel include' do
    resource = MockLoader.new(:centos6).load_resource('grub_conf')
    _(resource.kernel).must_be_kind_of Array
  end

  it 'verify initrd include' do
    resource = MockLoader.new(:centos6).load_resource('grub_conf')
    _(resource.initrd).must_be_kind_of String
  end

  it 'verify default' do
    resource = MockLoader.new(:centos6).load_resource('grub_conf')
    _(resource.default).must_equal '0'
  end

  it 'verify timeout' do
    resource = MockLoader.new(:centos6).load_resource('grub_conf')
    _(resource.timeout).must_equal '5'
  end

end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
inspec-0.30.0 test/unit/resources/grub_conf_test.rb
inspec-0.29.0 test/unit/resources/grub_conf_test.rb
inspec-0.28.1 test/unit/resources/grub_conf_test.rb
inspec-0.28.0 test/unit/resources/grub_conf_test.rb
inspec-0.27.1 test/unit/resources/grub_conf_test.rb
inspec-0.27.0 test/unit/resources/grub_conf_test.rb
inspec-0.26.0 test/unit/resources/grub_conf_test.rb
inspec-0.25.0 test/unit/resources/grub_conf_test.rb
inspec-0.24.0 test/unit/resources/grub_conf_test.rb
inspec-0.23 test/unit/resources/grub_conf_test.rb
inspec-0.22.1 test/unit/resources/grub_conf_test.rb
inspec-0.22.0 test/unit/resources/grub_conf_test.rb
inspec-0.21.6 test/unit/resources/grub_conf_test.rb
inspec-0.21.5 test/unit/resources/grub_conf_test.rb
inspec-0.21.4 test/unit/resources/grub_conf_test.rb
inspec-0.21.3 test/unit/resources/grub_conf_test.rb
inspec-0.21.2 test/unit/resources/grub_conf_test.rb
inspec-0.21.1 test/unit/resources/grub_conf_test.rb
inspec-0.21.0 test/unit/resources/grub_conf_test.rb
inspec-0.20.1 test/unit/resources/grub_conf_test.rb