Sha256: 35bb678400d812910aa6296448728e94df0810af7e2c3507d81aef63847895b0
Contents?: true
Size: 550 Bytes
Versions: 1
Compression:
Stored size: 550 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, minimum_length: 1, maximum_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.2.0 | spec/unit/axiom/optimizer/function/util/class_methods/min_spec.rb |