diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-02 14:31:37 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-02 14:31:37 -0800 |
commit | a8521641d5d7630bba7620ce42fe7456eeff0398 (patch) | |
tree | 993c09a375fe57ac4210ed2ccc58f018d399a72e /test/test_crud.rb | |
parent | baa660f62b4fae9197d7b4b6e4bbcf4059d106a8 (diff) | |
download | rails-a8521641d5d7630bba7620ce42fe7456eeff0398.tar.gz rails-a8521641d5d7630bba7620ce42fe7456eeff0398.tar.bz2 rails-a8521641d5d7630bba7620ce42fe7456eeff0398.zip |
deprecating the update method in favor of compile_update
Diffstat (limited to 'test/test_crud.rb')
-rw-r--r-- | test/test_crud.rb | 6 |
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 |