[ruby/prism] Pop lex mode for heredocs in the lexer, not the parser
[ruby.git] / spec / ruby / command_line / error_message_spec.rb
blob02150f30ce012d3e4265d1a1f6a13f2c5b8e55ad
1 require_relative '../spec_helper'
3 describe "The error message caused by an exception" do
4   it "is not printed to stdout" do
5     out = ruby_exe("this_does_not_exist", args: "2> #{File::NULL}", exit_status: 1)
6     out.chomp.should.empty?
8     out = ruby_exe("end #syntax error", args: "2> #{File::NULL}", exit_status: 1)
9     out.chomp.should.empty?
10   end
11 end