Sha256: bfe25155f8090ea0613aa98bda71d0835eaeebc12f3e4ad1bf4c9a3eb2ac68c3
Contents?: true
Size: 393 Bytes
Versions: 2
Compression:
Stored size: 393 Bytes
Contents
require 'spec_helper' describe 'Veritas::Optimizer::Logic::Predicate::Util.max' do subject { object.max(operand) } let(:object) { Optimizer::Logic::Predicate::Util } context 'with an attribute' do let(:operand) { Attribute::Integer.new(:id, :size => 1..10) } it { should == 10 } end context 'with a constant' do let(:operand) { 1 } it { should == 1 } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/optimizer/logic/predicate/util/class_methods/max_spec.rb |
veritas-0.0.1 | spec/unit/veritas/optimizer/logic/predicate/util/class_methods/max_spec.rb |