require 'spec_helper' describe 'Veritas::Tuple#hash' do subject { tuple.hash } let(:header) { Relation::Header.new([ [ :id, Integer ] ]) } let(:tuple) { Tuple.new(header, [ 1 ]) } it { should be_kind_of(Integer) } it { should == header.hash ^ [ 1 ].hash } it_should_behave_like 'an idempotent method' end