diff options
Diffstat (limited to 'spec/ruby/command_line/dash_upper_f_spec.rb')
-rw-r--r-- | spec/ruby/command_line/dash_upper_f_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/ruby/command_line/dash_upper_f_spec.rb b/spec/ruby/command_line/dash_upper_f_spec.rb new file mode 100644 index 0000000000..020968b1f9 --- /dev/null +++ b/spec/ruby/command_line/dash_upper_f_spec.rb @@ -0,0 +1,11 @@ +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 |