Sha256: 6e2942af1cd23dfc6d7f252c27734d621d238f2a249de9d566fa8b6e150a7fb0
Contents?: true
Size: 517 Bytes
Versions: 1
Compression:
Stored size: 517 Bytes
Contents
require 'spec_helper' describe 'Veritas::Operation::Unary#operand' do subject { object.operand } let(:klass) { Class.new { include Operation::Unary } } let(:object) { klass.new(operand) } context 'when operand is frozen' do let(:operand) { 'Operand'.freeze } it { should equal(operand) } end context 'when operand is not frozen' do let(:operand) { 'Operand' } it { should_not equal(operand) } it { should be_frozen } it { should == operand } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/operation/unary/operand_spec.rb |