Sha256: 79b68081ae4f65c615fcb8492753df5447042ca9abac4c8d14c477d2053dfa2c

Contents?: true

Size: 540 Bytes

Versions: 1

Compression:

Stored size: 540 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Algebra::Projection, '#hash' do
  subject { object.hash }

  let(:body)       { [[1, 'Dan Kubb'], [2, 'Dan Kubb'], [2, 'Alex Kubb']]  }
  let(:operand)    { Relation.new([[:id, Integer], [:name, String]], body) }
  let(:attributes) { [:id]                                                 }
  let(:object)     { described_class.new(operand, attributes)              }

  it_should_behave_like 'a hash method'

  it { should == described_class.hash ^ operand.hash ^ object.header.hash }
end

Version data entries

1 entries across 1 versions & 1 rubygems

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