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 | 13 |
1 files changed, 13 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..5c10a7140d --- /dev/null +++ b/spec/ruby/command_line/dash_upper_f_spec.rb @@ -0,0 +1,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:", + args: " < #{@passwd}").should == + "nobody\nroot\ndaemon\n" + end +end |
