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

Version Path
veritas-0.0.7 spec/unit/veritas/relation/operation/order/hash_spec.rb
veritas-0.0.6 spec/unit/veritas/relation/operation/order/hash_spec.rb
veritas-0.0.5 spec/unit/veritas/relation/operation/order/hash_spec.rb
veritas-0.0.4 spec/unit/veritas/relation/operation/order/hash_spec.rb