From a1a01e2bb301a7a4ae5c5cdcc27ece9f7edf6c66 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 5 Nov 2010 14:09:09 -0700 Subject: renaming @head to @ast --- test/test_select_manager.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test') 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 -- cgit v1.2.3