Sha256: 63a58f205b2c597c26d1e89da17276c479affc6bb0c325cbed11cf8a0cd470ea
Contents?: true
Size: 412 Bytes
Versions: 1
Compression:
Stored size: 412 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Tuple, '#hash' do subject { object.hash } let(:header) { Relation::Header.new([ [ :id, Integer ] ]) } let(:data) { [ 1 ] } let(:object) { described_class.new(header, data) } it_should_behave_like 'a hash method' it { should == described_class.hash ^ header.hash ^ Hash[header.zip(data)].hash } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.4 | spec/unit/veritas/tuple/hash_spec.rb |