Sha256: 88ea78f8536a6384e7610594768a4cb766b75e49395e2218bb50134fe4c493ed

Contents?: true

Size: 706 Bytes

Versions: 13

Compression:

Stored size: 706 Bytes

Contents

require 'spec_helper'
require 'specinfra/helper/detect_os/guix'

describe Specinfra::Helper::DetectOs::Guix do
  guix = Specinfra::Helper::DetectOs::Guix.new(:exec)
  it 'Should return guix when Guix is installed.' do
    allow(guix).to receive(:run_command) {
      CommandResult.new(:stdout => "NAME=\"Guix System\" \nID=guix\nPRETTY_NAME=\"Guix System\" \nLOGO=guix-icon\nHOME_URL=\"https://guix.gnu.org\" \nDOCUMENTATION_URL=\"https://guix.gnu.org/en/manual\" \nSUPPORT_URL=\"https://guix.gnu.org/en/help\" \nBUG_REPORT_URL=\"https://lists.gnu.org/mailman/listinfo/bug-guix\"", :exit_status => 0)
    }
    expect(guix.detect).to include(
      :family => 'guix',
      :release => nil
    )
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
specinfra-2.91.0 spec/helper/detect_os/guix_spec.rb
specinfra-2.90.1 spec/helper/detect_os/guix_spec.rb
specinfra-2.90.0 spec/helper/detect_os/guix_spec.rb
specinfra-2.89.0 spec/helper/detect_os/guix_spec.rb
specinfra-2.88.2 spec/helper/detect_os/guix_spec.rb
specinfra-2.88.1 spec/helper/detect_os/guix_spec.rb
specinfra-2.88.0 spec/helper/detect_os/guix_spec.rb
specinfra-2.87.2 spec/helper/detect_os/guix_spec.rb
specinfra-2.87.1 spec/helper/detect_os/guix_spec.rb
specinfra-2.87.0 spec/helper/detect_os/guix_spec.rb
specinfra-2.86.0 spec/helper/detect_os/guix_spec.rb
specinfra-2.85.1 spec/helper/detect_os/guix_spec.rb
specinfra-2.85.0 spec/helper/detect_os/guix_spec.rb