Sha256: 4c21abe5ffaa8e3a7f06f67d389a7d667bf08d1646c42356e6fca8e6c677b11a

Contents?: true

Size: 519 Bytes

Versions: 7

Compression:

Stored size: 519 Bytes

Contents

require 'rprogram/compat'

require 'spec_helper'

describe Compat do
  it "should have a list of directories that contain programs" do
    Compat.paths.should_not be_empty

    Compat.paths.any? { |dir|
      File.directory?(dir)
    }.should == true
  end

  it "should be able to find programs" do
    File.executable?(Compat.find_program('dir')).should == true
  end

  it "should be able to find programs by multiple names" do
    File.executable?(Compat.find_program_by_names('ls','dir')).should == true
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rprogram-0.2.3 spec/compat_spec.rb
rprogram-0.2.2 spec/compat_spec.rb
rprogram-0.2.1 spec/compat_spec.rb
rprogram-0.2.0 spec/compat_spec.rb
rprogram-0.1.8 spec/compat_spec.rb
rprogram-0.1.7 spec/compat_spec.rb
rprogram-0.1.6 spec/compat_spec.rb