File: kernel_spec.rb

package info (click to toggle)
ruby-specinfra 2.94.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,448 kB
  • sloc: ruby: 10,538; sh: 4; makefile: 4
file content (16 lines) | stat: -rw-r--r-- 614 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'spec_helper'

describe Specinfra::HostInventory::Kernel do
  describe "get" do
    let(:host_inventory) { Specinfra::HostInventory.instance }
    let(:command_class) { Specinfra::Command::Darwin::Base }
    let(:error_message) { "get_kernel is not implemented in #{command_class}" }
    let(:kernel_inventory) { Specinfra::HostInventory::Kernel.new(host_inventory) }
    let(:result) { kernel_inventory.get }
    example "it includes the value of os_info[:arch] in the key 'machine'" do
      expect(result).to include(
        "machine" => host_inventory.backend.os_info[:arch]
      )
    end
  end
end