Sha256: 5c1b6458cd3c62f0a1851351ac3a425003eb9efd198a422ae972476ab05511a6

Contents?: true

Size: 500 Bytes

Versions: 24

Compression:

Stored size: 500 Bytes

Contents

require 'spec_helper'
require 'specinfra/helper/detect_os/debian'

describe Specinfra::Helper::DetectOs::Debian do
  darwin = Specinfra::Helper::DetectOs::Debian.new(Specinfra.backend)

  it 'Should return debian 8.5 when jessie is installed.' do
    allow(debian).to receive(:run_command).with('cat /etc/debian_version') {
      CommandResult.new(:stdout => "8.5\n", :exit_status => 0)
    }
    expect(darwin.detect).to include(
      :family  => 'debian',
      :release => '8.5'
    )
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
specinfra-2.63.1 spec/helper/detect_os/debian_spec.rb
specinfra-2.63.0 spec/helper/detect_os/debian_spec.rb
specinfra-2.62.0 spec/helper/detect_os/debian_spec.rb
specinfra-2.61.3 spec/helper/detect_os/debian_spec.rb