Sha256: cf847b2a54b34381a249556ce575e90cf20bb41e48209cfdb14d56e9e7d6b098
Contents?: true
Size: 334 Bytes
Versions: 4
Compression:
Stored size: 334 Bytes
Contents
require 'etc' describe "Etc.getlogin" do it "returns the name of the user who runs this process" do if Etc.getlogin Etc.getlogin.should == username else # Etc.getlogin may return nil if the login name is not set # because of chroot or sudo or something. Etc.getlogin.should be_nil end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rubysl-etc-3.0 | spec/getlogin_spec.rb |
rubysl-etc-1.0.1 | spec/getlogin_spec.rb |
rubysl-etc-2.0.3 | spec/getlogin_spec.rb |
rubysl-etc-1.0.0 | spec/getlogin_spec.rb |