Sha256: 73bc404d9bc2adc25fdbcb9cf05a7c865c290a706e493c8d041ba42a43b64861

Contents?: true

Size: 433 Bytes

Versions: 1

Compression:

Stored size: 433 Bytes

Contents

require 'spec_helper'

describe 'Veritas::Operation::Binary#hash' do
  subject { object.hash }

  let(:klass)  { Class.new { include Operation::Binary } }
  let(:left)   { mock('Left').freeze                     }
  let(:right)  { mock('Right').freeze                    }
  let(:object) { klass.new(left, right)                  }

  it_should_behave_like 'a hash method'

  it { should == klass.hash ^ left.hash ^ right.hash }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.2 spec/unit/veritas/operation/binary/hash_spec.rb