Sha256: a9c15d49fa407cb1a3ff0878e000b9e37202944c828d715f17d8950be669424b

Contents?: true

Size: 484 Bytes

Versions: 4

Compression:

Stored size: 484 Bytes

Contents

require 'spec_helper'

describe Terrapin::OSDetector do
  it "detects that the system is unix" do
    on_unix!
    expect(Terrapin::OS).to be_unix
  end

  it "detects that the system is windows" do
    on_windows!
    expect(Terrapin::OS).to be_windows
  end

  it "detects that the system is windows (mingw)" do
    on_mingw!
    expect(Terrapin::OS).to be_windows
  end

  it "detects that the current Ruby is on Java" do
    on_java!
    expect(Terrapin::OS).to be_java
  end
end

Version data entries

4 entries across 3 versions & 2 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.1.0/gems/terrapin-1.0.1/spec/terrapin/os_detector_spec.rb
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/terrapin-1.0.1/spec/terrapin/os_detector_spec.rb
terrapin-1.0.1 spec/terrapin/os_detector_spec.rb
terrapin-1.0.0 spec/terrapin/os_detector_spec.rb