Sha256: 820be5974b53c120a630a898cda725983d6449b6d664afb7b3c14ee6f0b158ee

Contents?: true

Size: 479 Bytes

Versions: 1

Compression:

Stored size: 479 Bytes

Contents

require 'spec_helper'

describe 'Veritas::Algebra::Restriction#hash' do
  subject { object.hash }

  let(:klass)     { Algebra::Restriction                          }
  let(:operand)   { Relation.new([ [ :id, Integer ] ], [ [ 1 ] ]) }
  let(:predicate) { proc { true }                                 }
  let(:object)    { klass.new(operand, predicate)                 }

  it_should_behave_like 'a hash method'

  it { should == klass.hash ^ operand.hash ^ predicate.hash }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.2 spec/unit/veritas/algebra/restriction/hash_spec.rb