Sha256: bdd86838fe624c02ae9020b0a9ffa74cfdc283ac351769ec96ff023f6d6a5d34
Contents?: true
Size: 464 Bytes
Versions: 4
Compression:
Stored size: 464 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Relation::Operation::Order, '#hash' do subject { object.hash } let(:operand) { Relation.new([ [ :id, Integer ] ], [ [ 1 ], [ 2 ] ]) } let(:directions) { described_class::DirectionSet.new(operand.header) } let(:object) { described_class.new(operand, directions) } it_should_behave_like 'a hash method' it { should == described_class.hash ^ operand.hash ^ directions.hash } end
Version data entries
4 entries across 4 versions & 1 rubygems