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 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/ruby/command_line/dash_upper_e_spec.rb b/spec/ruby/command_line/dash_upper_e_spec.rb new file mode 100644 index 0000000000..716f1304b7 --- /dev/null +++ b/spec/ruby/command_line/dash_upper_e_spec.rb @@ -0,0 +1,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/ + end +end |