diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_select_manager.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_select_manager.rb b/test/test_select_manager.rb index 5662bc8990..09608ea71e 100644 --- a/test/test_select_manager.rb +++ b/test/test_select_manager.rb @@ -1095,6 +1095,12 @@ module Arel manager.distinct(false) manager.ast.cores.last.set_quantifier.must_equal nil end + + it "chains" do + manager = Arel::SelectManager.new Table.engine + manager.distinct.must_equal manager + manager.distinct(false).must_equal manager + end end end end |