Sha256: 70ababd5ae2202c97c44a251894d968c549f42b3cb88d803ee9ea907a34a5ad0

Contents?: true

Size: 415 Bytes

Versions: 1

Compression:

Stored size: 415 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

1 entries across 1 versions & 1 rubygems

Version Path
axiom-0.1.1 spec/unit/axiom/algebra/restriction/hash_spec.rb