Sha256: 7e17ecaca01f44042427fb60ff49f270dc050b61e6618dea0c9c33e23dd9f0a4
Contents?: true
Size: 541 Bytes
Versions: 2
Compression:
Stored size: 541 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Operation::Unary, '#operand' do subject { object.operand } let(:described_class) { Class.new { include Operation::Unary } } let(:object) { described_class.new(operand) } context 'when operand is frozen' do let(:operand) { 'Operand'.freeze } it { should be(operand) } end context 'when operand is not frozen' do let(:operand) { 'Operand' } it { should_not be(operand) } it { should be_frozen } it { should == operand } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.2.0 | spec/unit/axiom/operation/unary/operand_spec.rb |
axiom-0.1.1 | spec/unit/axiom/operation/unary/operand_spec.rb |