diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-04-08 16:39:08 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-04-08 16:39:08 -0700 |
commit | 208c00bbbf861297bd75bb45af47d999d1d3c46d (patch) | |
tree | ee490505b0dc744170071a7cde5660c1668edcb0 /test | |
parent | 462a0197b2f1941568d5ba2f86018a788d9fb150 (diff) | |
download | rails-208c00bbbf861297bd75bb45af47d999d1d3c46d.tar.gz rails-208c00bbbf861297bd75bb45af47d999d1d3c46d.tar.bz2 rails-208c00bbbf861297bd75bb45af47d999d1d3c46d.zip |
more select manager tests passing
Diffstat (limited to 'test')
-rw-r--r-- | test/test_select_manager.rb | 3 |
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 |