aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_select_manager.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_select_manager.rb')
-rw-r--r--test/test_select_manager.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_select_manager.rb b/test/test_select_manager.rb
index 6c7098b3d9..837486fb46 100644
--- a/test/test_select_manager.rb
+++ b/test/test_select_manager.rb
@@ -369,8 +369,9 @@ module Arel
table = Table.new :users
mgr = table.from table
ast = mgr.ast
- mgr.visitor.accept(ast).must_equal mgr.to_sql
+ assert ast
end
+
it 'should allow orders to work when the ast is grepped' do
table = Table.new :users
mgr = table.from table