diff options
Diffstat (limited to 'activesupport/test/test_test.rb')
-rw-r--r-- | activesupport/test/test_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |