Sha256: 4a8c5e4333d55b0b0134bf445d55658bdd712711dc98cb6692bb6a71e056b941
Contents?: true
Size: 395 Bytes
Versions: 1
Compression:
Stored size: 395 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.1 | spec/unit/axiom/tuple/hash_spec.rb |