Sha256: 7641cde5746fbe0d7219fc7bb4b8b20731de062b13f9922f3709a050fa7d91bd

Contents?: true

Size: 564 Bytes

Versions: 56

Compression:

Stored size: 564 Bytes

Contents

require 'spec_helper'

describe Launchy::Detect::HostOs do

  it "uses the defult host os from ruby's config" do
    Launchy::Detect::HostOs.new.host_os.must_equal RbConfig::CONFIG['host_os']
  end

  it "uses the passed in value as the host os" do
    Launchy::Detect::HostOs.new( "fake-os-1").host_os.must_equal "fake-os-1"
  end

  it "uses the environment variable LAUNCHY_HOST_OS to override ruby's config" do
    ENV['LAUNCHY_HOST_OS'] = "fake-os-2"
    Launchy::Detect::HostOs.new.host_os.must_equal "fake-os-2"
    ENV.delete('LAUNCHY_HOST_OS')
  end

end

Version data entries

56 entries across 53 versions & 6 rubygems

Version Path
tdiary-5.1.2 vendor/bundle/ruby/2.6.0/gems/launchy-2.4.3/spec/detect/host_os_spec.rb
tdiary-5.1.1 vendor/bundle/ruby/2.6.0/gems/launchy-2.4.3/spec/detect/host_os_spec.rb
tdiary-5.1.0 vendor/bundle/gems/launchy-2.4.3/spec/detect/host_os_spec.rb
cocoapods-dependency-html-0.0.2 vendor/bundle/gems/launchy-2.4.3/spec/detect/host_os_spec.rb
cocoapods-dependency-html-0.0.1 vendor/bundle/gems/launchy-2.4.3/spec/detect/host_os_spec.rb
tdiary-5.0.13 vendor/bundle/gems/launchy-2.4.3/spec/detect/host_os_spec.rb
tdiary-5.0.12.1 vendor/bundle/gems/launchy-2.4.3/spec/detect/host_os_spec.rb
tdiary-5.0.11 vendor/bundle/gems/launchy-2.4.3/spec/detect/host_os_spec.rb
tdiary-5.0.9 vendor/bundle/gems/launchy-2.4.3/spec/detect/host_os_spec.rb
tdiary-5.0.8 vendor/bundle/gems/tdiary-5.0.7/vendor/bundle/gems/launchy-2.4.3/spec/detect/host_os_spec.rb
tdiary-5.0.8 vendor/bundle/gems/launchy-2.4.3/spec/detect/host_os_spec.rb
tdiary-5.0.8 vendor/bundle/ruby/2.5.0/gems/launchy-2.4.3/spec/detect/host_os_spec.rb
tdiary-5.0.7 vendor/bundle/gems/launchy-2.4.3/spec/detect/host_os_spec.rb
tdiary-5.0.6 vendor/bundle/gems/launchy-2.4.3/spec/detect/host_os_spec.rb
tdiary-5.0.5 vendor/bundle/gems/launchy-2.4.3/spec/detect/host_os_spec.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/launchy-2.4.3/spec/detect/host_os_spec.rb
tdiary-5.0.4 vendor/bundle/gems/launchy-2.4.3/spec/detect/host_os_spec.rb
tdiary-5.0.2 vendor/bundle/gems/launchy-2.4.3/spec/detect/host_os_spec.rb
tdiary-5.0.1 vendor/bundle/gems/launchy-2.4.3/spec/detect/host_os_spec.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/launchy-2.4.3/spec/detect/host_os_spec.rb