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