Sha256: fc257e708c289e5172c8f56d86ed87cfa9d34b12e85dbf94b09cfd6bd1df2417

Contents?: true

Size: 469 Bytes

Versions: 4

Compression:

Stored size: 469 Bytes

Contents

require 'spec_helper'

describe Launchy::Detect::NixDesktopEnvironment do

 { "KDE_FULL_SESSION"         => Launchy::Detect::NixDesktopEnvironment::Kde,
   "GNOME_DESKTOP_SESSION_ID" => Launchy::Detect::NixDesktopEnvironment::Gnome }.each_pair do |k,v|
    it "can detect the desktop environment of a *nix machine using ENV[#{k}]" do
      ENV[k] = "launchy-test"
      Launchy::Detect::NixDesktopEnvironment.detect.must_equal v
      ENV.delete( k )
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
launchy-2.0.1 spec/detect/nix_desktop_environment_spec.rb
launchy-2.0.1-java spec/detect/nix_desktop_environment_spec.rb
launchy-2.0.0-java spec/detect/nix_desktop_environment_spec.rb
launchy-2.0.0 spec/detect/nix_desktop_environment_spec.rb