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