aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/arel/attributes/attribute_spec.rb7
1 files changed, 7 insertions, 0 deletions
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)