2018-08-27 14:25:00 +00:00
|
|
|
require_relative '../spec_helper'
|
|
|
|
|
2017-05-07 12:04:49 +00:00
|
|
|
describe "the -F command line option" do
|
|
|
|
before :each do
|
|
|
|
@passwd = fixture __FILE__, "passwd_file.txt"
|
|
|
|
end
|
|
|
|
|
|
|
|
it "specifies the field separator pattern for -a" do
|
|
|
|
ruby_exe("puts $F[0]", options: "-naF:", escape: true,
|
|
|
|
args: " < #{@passwd}").should ==
|
|
|
|
"nobody\nroot\ndaemon\n"
|
|
|
|
end
|
|
|
|
end
|