diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-02 15:45:00 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-02 15:45:00 -0800 |
commit | 9e05f7e01be3840b1a66bbda0292f97740f6947e (patch) | |
tree | 3f88658602addf4104dcd3afbd45328e904fe078 /test/test_crud.rb | |
parent | a8521641d5d7630bba7620ce42fe7456eeff0398 (diff) | |
download | rails-9e05f7e01be3840b1a66bbda0292f97740f6947e.tar.gz rails-9e05f7e01be3840b1a66bbda0292f97740f6947e.tar.bz2 rails-9e05f7e01be3840b1a66bbda0292f97740f6947e.zip |
deprecating the "delete" method in favor of compile_delete
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 0a727bce0a..ebe5d68908 100644 --- a/test/test_crud.rb +++ b/test/test_crud.rb @@ -57,10 +57,8 @@ module Arel table = Table.new :users fc = FakeCrudder.new fc.from table - fc.delete - fc.engine.calls.find { |method, _| - method == :delete - }.wont_be_nil + stmt = fc.compile_delete + assert_instance_of Arel::DeleteManager, stmt end end end |