mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Whitespace cleanup
This commit is contained in:
parent
c69dfd53de
commit
a9b3581007
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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]] }
|
||||
|
|
Loading…
Reference in a new issue