From d2acf8b548b56966da49bd7f2f92dcfbd5410319 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Fri, 18 May 2007 21:16:43 +0000 Subject: Silence some warnings. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6772 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/test/test_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activesupport/test') diff --git a/activesupport/test/test_test.rb b/activesupport/test/test_test.rb index e29534ccaf..b1d916d5c0 100644 --- a/activesupport/test/test_test.rb +++ b/activesupport/test/test_test.rb @@ -49,8 +49,8 @@ class AssertDifferenceTest < Test::Unit::TestCase def test_expression_is_evaluated_in_the_appropriate_scope local_scope = 'foo' - assert_difference 'local_scope; @object.num' do - @object.increment + silence_warnings do + assert_difference('local_scope; @object.num') { @object.increment } end end end -- cgit v1.2.3