Sha256: e483dd11c810c94fb60f67585225d94e3bc375feb6a4c6e3d3c9a28a39a28639

Contents?: true

Size: 547 Bytes

Versions: 5

Compression:

Stored size: 547 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 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

5 entries across 5 versions & 2 rubygems

Version Path
axiom-0.1.0 spec/unit/axiom/operation/unary/operand_spec.rb
veritas-0.0.7 spec/unit/veritas/operation/unary/operand_spec.rb
veritas-0.0.6 spec/unit/veritas/operation/unary/operand_spec.rb
veritas-0.0.5 spec/unit/veritas/operation/unary/operand_spec.rb
veritas-0.0.4 spec/unit/veritas/operation/unary/operand_spec.rb