Sha256: 216948d020c34bdec3c08d61db6701d45a9a5237d539f96d11ec0890caf9acd0

Contents?: true

Size: 409 Bytes

Versions: 5

Compression:

Stored size: 409 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Operation::Unary, '#hash' do
  subject { object.hash }

  let(:described_class) { Class.new { include Operation::Unary } }
  let(:operand)         { mock('Operand').freeze                 }
  let(:object)          { described_class.new(operand)           }

  it_should_behave_like 'a hash method'

  it { should == described_class.hash ^ operand.hash }
end

Version data entries

5 entries across 5 versions & 2 rubygems

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