aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_syntax.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-10 01:44:57 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-10 01:44:57 +0000
commit473dc1c5c0957595f0e6ef43d29e214fddf02ec8 (patch)
tree4331e5fe47e9924347e5f6c7aa09a70aa85ab847 /test/ruby/test_syntax.rb
parentce4ecc6b13bbf521389f8d90d5ed8b42d2401751 (diff)
downloadruby-473dc1c5c0957595f0e6ef43d29e214fddf02ec8.tar.gz
envutil.rb: use keyword argument
* test/ruby/envutil.rb (assert_valid_syntax): use keyword argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_syntax.rb')
-rw-r--r--test/ruby/test_syntax.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb
index 0e8a5ee478..c20f85feea 100644
--- a/test/ruby/test_syntax.rb
+++ b/test/ruby/test_syntax.rb
@@ -143,14 +143,14 @@ class TestSyntax < Test::Unit::TestCase
def test_warn_grouped_expression
bug5214 = '[ruby-core:39050]'
assert_warning("", bug5214) do
- assert_valid_syntax("foo \\\n(\n true)", "test") {$VERBOSE = true}
+ assert_valid_syntax("foo \\\n(\n true)", "test", verbose: true)
end
end
def test_warn_unreachable
assert_warning("test:3: warning: statement not reached\n") do
code = "loop do\n" "break\n" "foo\n" "end"
- assert_valid_syntax(code, "test") {$VERBOSE = true}
+ assert_valid_syntax(code, "test", verbose: true)
end
end
@@ -170,7 +170,7 @@ WARN
[:%, "string literal"],
].each do |op, syn|
assert_warning(warning % [op, syn]) do
- assert_valid_syntax("puts 1 #{op}0", "test") {$VERBOSE = true}
+ assert_valid_syntax("puts 1 #{op}0", "test", verbose: true)
end
end
end