diff options
author | Eugene Pimenov <libc@mac.com> | 2010-01-30 13:16:59 +0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-02-01 10:02:21 -0300 |
commit | e74bbd6830f5ca5f0ab1fe9f2f645674f6333a29 (patch) | |
tree | 0a26cf8e28ce188697d2645d54678ab71c336c13 /spec/arel/engines/sql/unit/relations/having_spec.rb | |
parent | 7ba3758665906599013e892515620431d6494030 (diff) | |
download | rails-e74bbd6830f5ca5f0ab1fe9f2f645674f6333a29.tar.gz rails-e74bbd6830f5ca5f0ab1fe9f2f645674f6333a29.tar.bz2 rails-e74bbd6830f5ca5f0ab1fe9f2f645674f6333a29.zip |
Quoting every part of a Range. Calling .to_s is not enough for Range with two Time objects.
Diffstat (limited to 'spec/arel/engines/sql/unit/relations/having_spec.rb')
-rw-r--r-- | spec/arel/engines/sql/unit/relations/having_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/arel/engines/sql/unit/relations/having_spec.rb b/spec/arel/engines/sql/unit/relations/having_spec.rb index dd170a256f..915ee3af08 100644 --- a/spec/arel/engines/sql/unit/relations/having_spec.rb +++ b/spec/arel/engines/sql/unit/relations/having_spec.rb @@ -13,7 +13,7 @@ module Arel adapter_is :mysql do sql.should be_like(%Q{ - SELECT `developers`.`id`, `developers`.`name`, `developers`.`salary`, `developers`.`department` + SELECT `developers`.`id`, `developers`.`name`, `developers`.`salary`, `developers`.`department`, `developers`.`created_at` FROM `developers` GROUP BY `developers`.`department` HAVING MIN(salary) > 1000 @@ -22,7 +22,7 @@ module Arel adapter_is_not :mysql do sql.should be_like(%Q{ - SELECT "developers"."id", "developers"."name", "developers"."salary", "developers"."department" + SELECT "developers"."id", "developers"."name", "developers"."salary", "developers"."department", "developers"."created_at" FROM "developers" GROUP BY "developers"."department" HAVING MIN(salary) > 1000 |