Sha256: 6c6d5ec11b42f0cb8ac47efd212df6e75ae6c23c05c09054f8e7f9308ba48f61
Contents?: true
Size: 518 Bytes
Versions: 1
Compression:
Stored size: 518 Bytes
Contents
require 'spec_helper' describe 'Veritas::Relation::Operation::Order#hash' do subject { object.hash } let(:klass) { Relation::Operation::Order } let(:operand) { Relation.new([ [ :id, Integer ] ], [ [ 1 ], [ 2 ] ]) } let(:directions) { klass::DirectionSet.new(operand.header) } let(:object) { klass.new(operand, directions) } it_should_behave_like 'a hash method' it { should == klass.hash ^ operand.hash ^ directions.hash } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/relation/operation/order/hash_spec.rb |