Skip to content

Commit

Permalink
+ Added caller to deprecation message
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/minitest/dev/": change = 7426]
  • Loading branch information
zenspider committed May 8, 2012
1 parent 76c087c commit c5fd8b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/minitest/unit.rb
Expand Up @@ -186,7 +186,7 @@ def assert test, msg = nil
# Fails unless the block returns a true value.

def assert_block msg = nil
warn "NOTE: MiniTest::Unit::TestCase#assert_block is deprecated, use assert. It will be removed on or after 2012-06-01."
warn "NOTE: MiniTest::Unit::TestCase#assert_block is deprecated, use assert. It will be removed on or after 2012-06-01. Called from #{caller.first}"
msg = message(msg) { "Expected block to return true value" }
assert yield, msg
end
Expand Down

0 comments on commit c5fd8b4

Please sign in to comment.