Sha256: 87276c177ae4d609ca5e72306ade1299b6d8bbc73f9aee937e1ec4d0fd41a878
Contents?: true
Size: 491 Bytes
Versions: 1
Compression:
Stored size: 491 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Operation::Binary, '#hash' do subject { object.hash } let(:described_class) { Class.new { include Operation::Binary } } let(:left) { double('Left').freeze } let(:right) { double('Right').freeze } let(:object) { described_class.new(left, right) } it_should_behave_like 'a hash method' it { should == described_class.hash ^ left.hash ^ right.hash } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.1.1 | spec/unit/axiom/operation/binary/hash_spec.rb |