aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_crud.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-11-16 14:20:07 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2013-11-16 14:20:07 -0800
commitaa14068100a968c6c616a525c287fbfaacc7d487 (patch)
tree3c5255d88a32cf72af0b438e6b38eec3a23e4c56 /test/test_crud.rb
parentff8b3bcf7044288bb13e98208650f141e0460908 (diff)
downloadrails-aa14068100a968c6c616a525c287fbfaacc7d487.tar.gz
rails-aa14068100a968c6c616a525c287fbfaacc7d487.tar.bz2
rails-aa14068100a968c6c616a525c287fbfaacc7d487.zip
explicitly pass the pk to compile_update
Diffstat (limited to 'test/test_crud.rb')
-rw-r--r--test/test_crud.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_crud.rb b/test/test_crud.rb
index fe3e4f2e02..ded1b632b7 100644
--- a/test/test_crud.rb
+++ b/test/test_crud.rb
@@ -45,7 +45,7 @@ module Arel
table = Table.new :users
fc = FakeCrudder.new
fc.from table
- stmt = fc.compile_update [[table[:id], 'foo']]
+ stmt = fc.compile_update [[table[:id], 'foo']], table.primary_key
assert_instance_of Arel::UpdateManager, stmt
end
end