aboutsummaryrefslogtreecommitdiffstats
path: root/spec/shared/relation_spec.rb
diff options
context:
space:
mode:
authorErnie Miller <ernie@metautonomo.us>2010-05-27 08:24:26 -0400
committerErnie Miller <ernie@metautonomo.us>2010-05-27 08:24:26 -0400
commita9b3581007a3609c21c1093ab3a07bf8d6408031 (patch)
treedd5915e0feb66a1a99f7d578326fd141f44584ec /spec/shared/relation_spec.rb
parentc69dfd53dec5dbc9d73469e373db6bb51db1c8dd (diff)
downloadrails-a9b3581007a3609c21c1093ab3a07bf8d6408031.tar.gz
rails-a9b3581007a3609c21c1093ab3a07bf8d6408031.tar.bz2
rails-a9b3581007a3609c21c1093ab3a07bf8d6408031.zip
Whitespace cleanup
Diffstat (limited to 'spec/shared/relation_spec.rb')
-rw-r--r--spec/shared/relation_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/shared/relation_spec.rb b/spec/shared/relation_spec.rb
index d6d0de1da4..a5a22edb7d 100644
--- a/spec/shared/relation_spec.rb
+++ b/spec/shared/relation_spec.rb
@@ -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]] }