Sha256: a14824f03d790164fe6811713e795c68c26e649dd61d385610bc1963a5c39822
Contents?: true
Size: 601 Bytes
Versions: 5
Compression:
Stored size: 601 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Operation::Binary, '#left' do subject { object.left } let(:described_class) { Class.new { include Operation::Binary } } let(:right) { 'Right' } let(:object) { described_class.new(left, right) } 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
5 entries across 5 versions & 2 rubygems