Fix broken test

quote_value is called on the object not the class
This commit is contained in:
Rafael Mendonça França
2013-07-24 16:21:37 -03:00
parent b4dea61a42
commit 1463fbeafb

View File

@@ -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!