aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_crud.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_crud.rb')
-rw-r--r--test/test_crud.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/test_crud.rb b/test/test_crud.rb
index 582f0ec072..0a727bce0a 100644
--- a/test/test_crud.rb
+++ b/test/test_crud.rb
@@ -47,10 +47,8 @@ module Arel
table = Table.new :users
fc = FakeCrudder.new
fc.from table
- fc.update [[table[:id], 'foo']]
- fc.engine.calls.find { |method, _|
- method == :update
- }.wont_be_nil
+ stmt = fc.compile_update [[table[:id], 'foo']]
+ assert_instance_of Arel::UpdateManager, stmt
end
end