aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_env.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_env.rb')
-rw-r--r--test/ruby/test_env.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/test/ruby/test_env.rb b/test/ruby/test_env.rb
index 6effa5197c..070e10464e 100644
--- a/test/ruby/test_env.rb
+++ b/test/ruby/test_env.rb
@@ -10,15 +10,13 @@ class TestEnv < Test::Unit::TestCase
]
def assert_invalid_env(msg = nil)
- failed = {}
- INVALID_ENVVARS.select do |v|
- begin
- assert_raise(ArgumentError) {yield v}
- rescue MiniTest::Assertion => e
- failed[v] = e
+ all_assertions(msg) do |a|
+ INVALID_ENVVARS.each do |v|
+ a.for(v) do
+ assert_raise(ArgumentError) {yield v}
+ end
end
end
- assert(failed.empty?, message(msg) {mu_pp(failed)})
end
def setup