aboutsummaryrefslogtreecommitdiffstats
path: root/spec/rubyspec/command_line/dash_upper_e_spec.rb
blob: 716f1304b7999f5238115c49659d8aa801a16c95 (plain)
1
2
3
4
5
6
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