Sha256: 644450faa225df1a3d49a814e1bc6405521b46c47bce1d8efa0092119197467c
Contents?: true
Size: 750 Bytes
Versions: 5
Compression:
Stored size: 750 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Function::Predicate::LessThan::Tautology, '#optimizable?' do subject { object.optimizable? } let(:predicate) { left.lt(right) } let(:object) { described_class.new(predicate) } before do predicate.should be_kind_of(Function::Predicate::LessThan) end context 'when left is always less than right' do let(:left) { Attribute::Integer.new(:id, :size => 1..9) } let(:right) { Attribute::Integer.new(:id, :size => 10..20) } it { should be(true) } end context 'when left is equivalent to the right' do let(:left) { Attribute::Integer.new(:id) } let(:right) { Attribute::Integer.new(:id) } it { should be(false) } end end
Version data entries
5 entries across 5 versions & 2 rubygems