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 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/ruby/command_line/dash_upper_f_spec.rb b/spec/ruby/command_line/dash_upper_f_spec.rb index 020968b1f9..5c10a7140d 100644 --- a/spec/ruby/command_line/dash_upper_f_spec.rb +++ b/spec/ruby/command_line/dash_upper_f_spec.rb @@ -1,10 +1,12 @@ +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, + ruby_exe("puts $F[0]", options: "-naF:", args: " < #{@passwd}").should == "nobody\nroot\ndaemon\n" end |
