Sha256: 9506807890e3141d3af0d2bc061a18888425ae8769813561ed9ecc0dfdc9bac7
Contents?: true
Size: 855 Bytes
Versions: 4
Compression:
Stored size: 855 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Function::Binary, '#left' do subject { object.left } let(:described_class) { Class.new(Optimizer) { include Optimizer::Function::Binary } } let(:right) { 'Right' } let(:function) { Class.new(Veritas::Function) { include Veritas::Function::Binary }.new(left, right) } let(:object) { described_class.new(function) } 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
4 entries across 4 versions & 1 rubygems