diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-10 13:30:22 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-10 13:30:22 +0000 |
commit | 5d0103f9731f54285fe716137697cea7c0cfd3ab (patch) | |
tree | 1531e974bd2018f0b8439a3f72dcb736af470bf3 /doc/syntax/refinements.rdoc | |
parent | b496220a1f70f8393070ffebcb883c7c5fc036d7 (diff) |
spec/ruby/library/etc/getlogin_spec.rb: Use `logname` as an expected result
It had used `id -un`, but it is not always equal to `Etc.getlogin`.
`id` returns the current user of the process, and `Etc.getlogin` returns
the user name logged in on the controlling terminal of the process.
This change uses `logname` by default. `id` remains as a fallback since
there seem to be some platforms where `logname` is not available:
https://github.com/ruby/spec/commit/49576b417ca3704cfb8271d2545c06c076c10cbc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'doc/syntax/refinements.rdoc')
0 files changed, 0 insertions, 0 deletions