1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Whitespace cleanup

This commit is contained in:
Ernie Miller 2010-05-27 08:24:26 -04:00
parent c69dfd53de
commit a9b3581007
2 changed files with 3 additions and 3 deletions

View file

@ -39,7 +39,7 @@ module Arel
end
end
end
describe 'when given two predicates' do
it "manufactures sql with where clause conditions joined by AND" do
sql = @relation.group(@relation[:department]).having("MIN(salary) > 1000", "MAX(salary) < 10000").to_sql

View file

@ -187,12 +187,12 @@ share_examples_for 'A Relation' do
actual.should == @expected.reverse
end
end
describe "by two attributes in one call to #order" do
before :all do
@expected = @expected.sort_by { |e| [e[@relation[:name]], e[@relation[:age]]]}.map {|e| e[@relation[:id]]}
end
it "can be specified as ascending order in one call to #order" do
actual = []
@relation.order(@relation[:name].asc, @relation[:age].asc).each { |r| actual << r[@relation[:id]] }