Skip to content
Permalink
Browse files
Silence rubocop warnings.
  • Loading branch information
matz committed Jun 21, 2017
1 parent e8a4e42 commit af0bef6dd8da9520ef1a124b63e46245609153f3
Showing 1 changed file with 3 additions and 3 deletions.
@@ -23,8 +23,8 @@ def assertion_string(err, str, iso=nil, e=nil, bt=nil)
msg += " => #{e.message}" if e
msg += " (mrbgems: #{GEMNAME})" if Object.const_defined?(:GEMNAME)
if $mrbtest_assert && $mrbtest_assert.size > 0
$mrbtest_assert.each do |idx, str, diff|
msg += "\n - Assertion[#{idx}] Failed: #{str}\n#{diff}"
$mrbtest_assert.each do |idx, msg, diff|
msg += "\n - Assertion[#{idx}] Failed: #{msg}\n#{diff}"
end
end
msg += "\nbacktrace:\n\t#{bt.join("\n\t")}" if bt
@@ -62,7 +62,7 @@ def assert(str = 'Assertion failed', iso = '')
$asserts.push(assertion_string("#{e.class}: ", str, iso, e, bt))
$kill_test += 1
t_print('X')
end
end
ensure
$mrbtest_assert = nil
end

0 comments on commit af0bef6

Please sign in to comment.