diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-05 14:09:09 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-05 14:09:09 -0700 |
commit | a1a01e2bb301a7a4ae5c5cdcc27ece9f7edf6c66 (patch) | |
tree | b0c8cc190b8421c4e9f615e131ee1cd089ac2fba /test | |
parent | 424e39d6883e5ab53a0f2c5d27508b36b1fb5879 (diff) | |
download | rails-a1a01e2bb301a7a4ae5c5cdcc27ece9f7edf6c66.tar.gz rails-a1a01e2bb301a7a4ae5c5cdcc27ece9f7edf6c66.tar.bz2 rails-a1a01e2bb301a7a4ae5c5cdcc27ece9f7edf6c66.zip |
renaming @head to @ast
Diffstat (limited to 'test')
-rw-r--r-- | test/test_select_manager.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test_select_manager.rb b/test/test_select_manager.rb index 50f04a1a58..ebec92b1da 100644 --- a/test/test_select_manager.rb +++ b/test/test_select_manager.rb @@ -130,6 +130,15 @@ module Arel end end + describe 'ast' do + it 'should return the ast' do + table = Table.new :users + mgr = table.from table + ast = mgr.ast + mgr.visitor.accept(ast).must_equal mgr.to_sql + end + end + describe 'taken' do it 'should return limit' do manager = Arel::SelectManager.new Table.engine |