Sha256: 0b47edef496634941cf556fa76462147b71c60754e747fa412acc2b6a0c64a54
Contents?: true
Size: 542 Bytes
Versions: 1
Compression:
Stored size: 542 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Function::Util, '.min' do subject { object.min(operand) } let(:object) { Optimizer::Function::Util } context 'with an Integer attribute' do let(:operand) { Attribute::Integer.new(:id, size: 1..10) } it { should == 1 } end context 'with a String attribute' do let(:operand) { Attribute::String.new(:id, min_length: 1, max_length: 10) } it { should == 1 } end context 'with a constat' do let(:operand) { 1 } it { should == 1 } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-optimizer-0.1.1 | spec/unit/axiom/optimizer/function/util/class_methods/min_spec.rb |