Sha256: c32ace7395fb0b87d8b549aca4354dad950c06161fb3f41278535fc4e4816a4a

Contents?: true

Size: 464 Bytes

Versions: 1

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.coerce(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

1 entries across 1 versions & 1 rubygems

Version Path
axiom-0.1.0 spec/unit/axiom/relation/operation/order/hash_spec.rb