diff options
Diffstat (limited to 'spec/ruby/command_line/dash_upper_e_spec.rb')
| -rw-r--r-- | spec/ruby/command_line/dash_upper_e_spec.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/ruby/command_line/dash_upper_e_spec.rb b/spec/ruby/command_line/dash_upper_e_spec.rb index 39ffa001a3..5a83962583 100644 --- a/spec/ruby/command_line/dash_upper_e_spec.rb +++ b/spec/ruby/command_line/dash_upper_e_spec.rb @@ -1,3 +1,5 @@ +require_relative '../spec_helper' + describe "ruby -E" do it "sets the external encoding with '-E external'" do result = ruby_exe("print Encoding.default_external", options: '-E euc-jp') @@ -29,6 +31,7 @@ describe "ruby -E" do it "raises a RuntimeError if used with -U" do ruby_exe("p 1", options: '-Eascii:ascii -U', - args: '2>&1').should =~ /RuntimeError/ + args: '2>&1', + exit_status: 1).should =~ /RuntimeError/ end end |
