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.67.6 spec/helper/detect_os/debian_spec.rb
specinfra-2.67.5 spec/helper/detect_os/debian_spec.rb
specinfra-2.67.3 spec/helper/detect_os/debian_spec.rb
specinfra-2.67.2 spec/helper/detect_os/debian_spec.rb
specinfra-2.67.1 spec/helper/detect_os/debian_spec.rb
specinfra-2.67.0 spec/helper/detect_os/debian_spec.rb
specinfra-2.66.9 spec/helper/detect_os/debian_spec.rb
specinfra-2.66.8 spec/helper/detect_os/debian_spec.rb
specinfra-2.66.7 spec/helper/detect_os/debian_spec.rb
specinfra-2.66.6 spec/helper/detect_os/debian_spec.rb
specinfra-2.66.5 spec/helper/detect_os/debian_spec.rb
specinfra-2.66.4 spec/helper/detect_os/debian_spec.rb
specinfra-2.66.3 spec/helper/detect_os/debian_spec.rb
specinfra-2.66.2 spec/helper/detect_os/debian_spec.rb
specinfra-2.66.1 spec/helper/detect_os/debian_spec.rb
specinfra-2.66.0 spec/helper/detect_os/debian_spec.rb
specinfra-2.65.0 spec/helper/detect_os/debian_spec.rb
specinfra-2.64.0 spec/helper/detect_os/debian_spec.rb
specinfra-2.63.3 spec/helper/detect_os/debian_spec.rb
specinfra-2.63.2 spec/helper/detect_os/debian_spec.rb