spec/unit/axiom/algebra/projection/hash_spec.rb in axiom-0.1.0 vs spec/unit/axiom/algebra/projection/hash_spec.rb in axiom-0.1.1

- old
+ new

@@ -3,13 +3,13 @@ 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) } + 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