summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-05 12:03:56 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-05 12:04:11 +0900
commitaa8a8d8f6d259da096afc1deb65cc35e0fe518d0 (patch)
tree371753ea9f3546f9c05ef90afb2b8ed0a249ebdb /spec
parentc75a3356b39c5a6ede275f38d5d869dbcd5dba93 (diff)
Split an assertion for f1f04caf60e4fc9dc3b12109e0be831f2d692810
Diffstat (limited to 'spec')
-rw-r--r--spec/ruby/command_line/frozen_strings_spec.rb3
1 files changed, 2 insertions, 1 deletions
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