diff options
Diffstat (limited to 'spec/arel/select_manager_spec.rb')
-rw-r--r-- | spec/arel/select_manager_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/arel/select_manager_spec.rb b/spec/arel/select_manager_spec.rb index a6f5765b44..506abb6485 100644 --- a/spec/arel/select_manager_spec.rb +++ b/spec/arel/select_manager_spec.rb @@ -154,6 +154,15 @@ module Arel SELECT FROM "users" GROUP BY "users"."id", "users"."name" } end + + # FIXME: backwards compat + it 'makes strings literals' do + table = Table.new :users + manager = Arel::SelectManager.new Table.engine + manager.from table + manager.group 'foo' + manager.to_sql.should be_like %{ SELECT FROM "users" GROUP BY foo } + end end describe 'delete' do |