summaryrefslogtreecommitdiff
path: root/test/ruby/envutil.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-15 11:28:52 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-15 11:28:52 +0000
commit1451377e750cc775a5cef54419bdfc139f2e6ce0 (patch)
tree971805334afba6e0b660e80579ff652a77a97fb4 /test/ruby/envutil.rb
parente67b307e559a883f1f7bca34c1062ab83f03dd49 (diff)
Simplify multiline condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/envutil.rb')
-rw-r--r--test/ruby/envutil.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/envutil.rb b/test/ruby/envutil.rb
index d97118cd44..4d76a504af 100644
--- a/test/ruby/envutil.rb
+++ b/test/ruby/envutil.rb
@@ -497,7 +497,7 @@ eom
unless match
msg = message(msg) {
expect_msg = "Expected #{mu_pp pattern}\n"
- if /\n[^\n]+\n/ =~ rest
+ if /\n[^\n]/ =~ rest
actual_mesg = "to match\n"
rest.scan(/.*\n+/) {
actual_mesg << ' ' << $&.inspect << "+\n"