mirror of
https://github.com/github/rails.git
synced 2026-01-08 22:27:59 -05:00
Fix broken test
quote_value is called on the object not the class
This commit is contained in:
@@ -27,7 +27,7 @@ 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.expects(:quote_value).with(0, Person.columns_hash[Person.locking_column]).returns('0').once
|
||||
|
||||
p1.first_name = 'anika2'
|
||||
p1.save!
|
||||
|
||||
Reference in New Issue
Block a user