From a8521641d5d7630bba7620ce42fe7456eeff0398 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 2 Dec 2010 14:31:37 -0800 Subject: deprecating the update method in favor of compile_update --- test/test_crud.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test/test_crud.rb') 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 -- cgit v1.2.3