Sha256: 0f78a0af9417f9cf31a963e24c3a388c2aa533c72bb59226f9137f9f7631e6e0
Contents?: true
Size: 433 Bytes
Versions: 5
Compression:
Stored size: 433 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Algebra::Restriction, '#hash' do subject { object.hash } let(:operand) { Relation.new([ [ :id, Integer ] ], [ [ 1 ] ]) } let(:predicate) { proc { true } } let(:object) { described_class.new(operand, predicate) } it_should_behave_like 'a hash method' it { should == described_class.hash ^ operand.hash ^ predicate.hash } end
Version data entries
5 entries across 5 versions & 2 rubygems