Sha256: d2c1d16fa5393215b2afdfa9340f49bf99484c5085cf53379327ea754cae37f5
Contents?: true
Size: 470 Bytes
Versions: 1
Compression:
Stored size: 470 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Relation, '#hash' do subject { object.hash } let(:header) { Relation::Header.coerce([[:id, Integer]]) } let(:body) { LazyEnumerable.new } let(:object) { described_class.new(header, body) } before do object.should be_instance_of(described_class) end it_should_behave_like 'a hash method' it { should == described_class.hash ^ header.hash ^ body.to_set.hash } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.1.1 | spec/unit/axiom/relation/hash_spec.rb |