From caf89fe3415982fd0b593ffcda9a58a083aa7e78 Mon Sep 17 00:00:00 2001 From: Nick Kallen Date: Fri, 18 Apr 2008 15:14:39 -0700 Subject: in fact, when doing subsequent orderings, we assume that the previous orderings have taken effect and therefore where the new ordering finds things equal, the previous ordering should take effect --- spec/arel/unit/relations/order_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec') diff --git a/spec/arel/unit/relations/order_spec.rb b/spec/arel/unit/relations/order_spec.rb index 514612f047..d373a8ba12 100644 --- a/spec/arel/unit/relations/order_spec.rb +++ b/spec/arel/unit/relations/order_spec.rb @@ -52,11 +52,11 @@ module Arel @another_attribute = @relation[:name] end - it "manufactures sql with the order clause of the last ordering" do + it "manufactures sql with the order clause of the last ordering preceding the first ordering" do Order.new(@ordered_relation, @another_attribute).to_sql.should be_like(" SELECT `users`.`id`, `users`.`name` FROM `users` - ORDER BY `users`.`name` + ORDER BY `users`.`name`, `users`.`id` ") end end -- cgit v1.2.3