Sha256: 98693228cebffd71e1a0e05e83fc2cf9ea0a852703bf715e8e43c5f5937e2510
Contents?: true
Size: 473 Bytes
Versions: 4
Compression:
Stored size: 473 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Relation, '#hash' do subject { object.hash } let(:header) { Relation::Header.new([ [ :id, Integer ] ]) } let(:body) { [].each } 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
4 entries across 4 versions & 1 rubygems