Sha256: 7a7dde5909e58f19c64a47def81e1b66470416d4e575e659362da2a16055625d
Contents?: true
Size: 397 Bytes
Versions: 2
Compression:
Stored size: 397 Bytes
Contents
require 'spec_helper' describe 'Veritas::Optimizer::Logic::Predicate::Util.constant?' do subject { object.constant?(operand) } let(:object) { Optimizer::Logic::Predicate::Util } context 'with an attribute' do let(:operand) { Attribute::Integer.new(:id) } it { should be(false) } end context 'with a constant' do let(:operand) { 1 } it { should be(true) } end end
Version data entries
2 entries across 2 versions & 1 rubygems