diff options
author | Karunakar (Ruby) <revurikarna@gmail.com> | 2012-01-05 00:03:30 +0530 |
---|---|---|
committer | Karunakar (Ruby) <revurikarna@gmail.com> | 2012-01-05 00:03:30 +0530 |
commit | ca0718c164f667d12688294ae817997e53e65314 (patch) | |
tree | 14ac210ca9a12f76fcd2d0d485bb4e86db2e4148 /activerecord | |
parent | 9a5b335d3664ef805f0b1880b709de57ecae1e41 (diff) | |
download | rails-ca0718c164f667d12688294ae817997e53e65314.tar.gz rails-ca0718c164f667d12688294ae817997e53e65314.tar.bz2 rails-ca0718c164f667d12688294ae817997e53e65314.zip |
removed unnecessary +1 from assert_difference because default difference is 1
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/locking_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/locking_test.rb b/activerecord/test/cases/locking_test.rb index f6ce2a18a1..0c458d5318 100644 --- a/activerecord/test/cases/locking_test.rb +++ b/activerecord/test/cases/locking_test.rb @@ -231,7 +231,7 @@ class OptimisticLockingTest < ActiveRecord::TestCase def test_polymorphic_destroy_with_dependencies_and_lock_version car = Car.create! - assert_difference 'car.wheels.count', +1 do + assert_difference 'car.wheels.count' do car.wheels << Wheel.create! end assert_difference 'car.wheels.count', -1 do |