summaryrefslogtreecommitdiff
path: root/spec/ruby/command_line/dash_upper_f_spec.rb
blob: 967acc2ece1f7ced3930486e5f21347bd20c85f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require_relative '../spec_helper'

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