Sha256: c1993c505f29527ff8a232e0004c77501614bd114b0449b25db7480e82eacb8e
Contents?: true
Size: 663 Bytes
Versions: 1
Compression:
Stored size: 663 Bytes
Contents
require 'spec_helper' describe 'Veritas::Optimizer::Logic::Predicate#left' do subject { object.left } let(:klass) { Optimizer::Logic::Predicate } let(:right) { 'Right' } let(:predicate) { Class.new(Logic::Predicate).new(left, right) } let(:object) { klass.new(predicate) } context 'when left operand is frozen' do let(:left) { 'Left'.freeze } it { should equal(left) } end context 'when left operand is not frozen' do let(:left) { 'Left' } it { should_not equal(left) } it { should be_frozen } it { should == left } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/optimizer/logic/predicate/left_spec.rb |