Sha256: abab9af15f37974c3880265edc621ee866e0dfee0360ddee0f8ab5c22f524181
Contents?: true
Size: 569 Bytes
Versions: 1
Compression:
Stored size: 569 Bytes
Contents
require 'spec_helper' describe 'Veritas::Logic::Predicate.extract_value' do subject { object.extract_value(operand, tuple) } let(:header) { Relation::Header.new([ [ :id, Integer ] ]) } let(:tuple) { Tuple.new(header, [ 1 ]) } let(:object) { Logic::Predicate } context 'when the operand responds to #call' do let(:operand) { header[:id] } it { should == 1 } end context 'when the operand does not respond to #call' do let(:operand) { mock('Value') } it { should equal(operand) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/logic/predicate/class_methods/extract_value_spec.rb |