aboutsummaryrefslogtreecommitdiffstats
path: root/spec/arel/table_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/arel/table_spec.rb')
-rw-r--r--spec/arel/table_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/arel/table_spec.rb b/spec/arel/table_spec.rb
index 702608ed85..ae43183c67 100644
--- a/spec/arel/table_spec.rb
+++ b/spec/arel/table_spec.rb
@@ -30,6 +30,13 @@ module Arel
end
end
+ describe 'order' do
+ it "should take an order" do
+ manager = @relation.order "foo"
+ manager.to_sql.should be_like %{ SELECT FROM "users" ORDER BY foo }
+ end
+ end
+
describe 'take' do
it "should add a limit" do
manager = @relation.take 1