From 5daafa8e959acc64fc19e9522470282ac0f25f33 Mon Sep 17 00:00:00 2001 From: Emilio Tagua Date: Sat, 11 Sep 2010 11:34:18 +0800 Subject: Add Min node. --- spec/arel/attributes/attribute_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'spec/arel') diff --git a/spec/arel/attributes/attribute_spec.rb b/spec/arel/attributes/attribute_spec.rb index 6679ca8b7a..faef096792 100644 --- a/spec/arel/attributes/attribute_spec.rb +++ b/spec/arel/attributes/attribute_spec.rb @@ -94,6 +94,13 @@ module Arel end end + describe '#minimum' do + it 'should create a Min node' do + relation = Table.new(:users) + relation[:id].minimum.should be_kind_of Nodes::Min + end + end + describe '#sum' do it 'should create a SUM node' do relation = Table.new(:users) -- cgit v1.2.3