diff options
Diffstat (limited to 'activesupport/test/test_test.rb')
-rw-r--r-- | activesupport/test/test_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/test/test_test.rb b/activesupport/test/test_test.rb index b1d916d5c0..944b98f529 100644 --- a/activesupport/test/test_test.rb +++ b/activesupport/test/test_test.rb @@ -53,4 +53,10 @@ class AssertDifferenceTest < Test::Unit::TestCase assert_difference('local_scope; @object.num') { @object.increment } end end + + def test_array_of_expressions + assert_difference [ '@object.num', '@object.num + 1' ], +1 do + @object.increment + end + end end |