Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
moved deprecation to the end of the module
[git-p4: depot-paths = "//src/minitest/dev/": change = 7258]
  • Loading branch information
zenspider committed Mar 28, 2012
1 parent eee5954 commit 8d08404
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/minitest/unit.rb
Expand Up @@ -191,9 +191,6 @@ def assert_block msg = nil
assert yield, msg
end

extend Gem::Deprecate
deprecate :assert_block, :assert, 2012, 9

##
# Fails unless +obj+ is empty.

Expand Down Expand Up @@ -645,6 +642,9 @@ def skip msg = nil, bt = caller
msg ||= "Skipped, no message given"
raise MiniTest::Skip, msg, bt
end

extend Gem::Deprecate
deprecate :assert_block, :assert, 2012, 9
end

class Unit # :nodoc:
Expand Down

0 comments on commit 8d08404

Please sign in to comment.