Sha256: 38b278a90d1f3c9c843b0ea0efb16f50aa9ec16297cb3dcacacba31673e1dae4

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.1 spec/unit/axiom/relation/operation/order/hash_spec.rb