diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-15 05:54:18 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-15 05:54:18 +0000 |
commit | d0c000ab9e90be4896744cb6ec107dffa573f2dd (patch) | |
tree | d5cb7431dd4621864fe184a76dd19b5fce0c3047 /activesupport/test/reloadable_test.rb | |
parent | 069b0eaf0bd42a2474028022b1e907dc97cc2e41 (diff) | |
download | rails-d0c000ab9e90be4896744cb6ec107dffa573f2dd.tar.gz rails-d0c000ab9e90be4896744cb6ec107dffa573f2dd.tar.bz2 rails-d0c000ab9e90be4896744cb6ec107dffa573f2dd.zip |
assert_deprecated returns result of block
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5115 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test/reloadable_test.rb')
-rw-r--r-- | activesupport/test/reloadable_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/test/reloadable_test.rb b/activesupport/test/reloadable_test.rb index 18120b39a7..eca21295b4 100644 --- a/activesupport/test/reloadable_test.rb +++ b/activesupport/test/reloadable_test.rb @@ -96,18 +96,18 @@ class ReloadableTest < Test::Unit::TestCase def test_include_subclasses_should_warn c = Class.new - deps = collect_deprecations do + result, deps = collect_deprecations do c.send :include, Reloadable::Subclasses end assert_equal 1, deps.size assert_match %r{Reloadable::Subclasses}, deps.first - + assert_deprecated_reloadable { c.reloadable? } end def test_include_deprecated_should_not_warn c = Class.new - deps = collect_deprecations do + result, deps = collect_deprecations do c.send :include, Reloadable::Deprecated end assert_equal 0, deps.size |