From aa8a8d8f6d259da096afc1deb65cc35e0fe518d0 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 5 Jun 2019 12:03:56 +0900 Subject: Split an assertion for f1f04caf60e4fc9dc3b12109e0be831f2d692810 --- spec/ruby/command_line/frozen_strings_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'spec') diff --git a/spec/ruby/command_line/frozen_strings_spec.rb b/spec/ruby/command_line/frozen_strings_spec.rb index b2631a4c76..647b69daed 100644 --- a/spec/ruby/command_line/frozen_strings_spec.rb +++ b/spec/ruby/command_line/frozen_strings_spec.rb @@ -22,7 +22,8 @@ end describe "The --debug flag produces" do it "debugging info on attempted frozen string modification" do error_str = ruby_exe(fixture(__FILE__, 'debug_info.rb'), options: '--debug', args: "2>&1") - error_str.should include("can't modify frozen String, created at ") + error_str.should include("can't modify frozen String") + error_str.should include("created at") error_str.should include("command_line/fixtures/debug_info.rb:2") end end -- cgit v1.2.3