aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorSean Griffin <sean@thoughtbot.com>2014-12-26 17:36:47 -0700
committerSean Griffin <sean@thoughtbot.com>2014-12-26 17:36:47 -0700
commit15e2d5043f181a480f9bb3c3ff19b03505e7c4a1 (patch)
tree243109ab506906617b4f4ca08c7d36dda36bd1f2 /activerecord/test
parent0520e6559ef377de841c2fb2345835732756f451 (diff)
downloadrails-15e2d5043f181a480f9bb3c3ff19b03505e7c4a1.tar.gz
rails-15e2d5043f181a480f9bb3c3ff19b03505e7c4a1.tar.bz2
rails-15e2d5043f181a480f9bb3c3ff19b03505e7c4a1.zip
Go through normal `update_all` logic when updating lock columns
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/locking_test.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/activerecord/test/cases/locking_test.rb b/activerecord/test/cases/locking_test.rb
index 5a4b1fb919..ee43f07dd7 100644
--- a/activerecord/test/cases/locking_test.rb
+++ b/activerecord/test/cases/locking_test.rb
@@ -33,8 +33,6 @@ class OptimisticLockingTest < ActiveRecord::TestCase
p1 = Person.find(1)
assert_equal 0, p1.lock_version
- Person.expects(:quote_value).with(0, Person.columns_hash[Person.locking_column]).returns('0').once
-
p1.first_name = 'anika2'
p1.save!