Sha256: c162adb2f5431af48eddbde8c32631d581bc2c19c365f3e5bd83ef3ec6240972

Contents?: true

Size: 469 Bytes

Versions: 1

Compression:

Stored size: 469 Bytes

Contents

require 'spec_helper'

describe 'Veritas::Relation::Operation::Order::DirectionSet#hash' do
  subject { object.hash }

  let(:klass)      { Relation::Operation::Order::DirectionSet }
  let(:attribute)  { Attribute::Integer.new(:id)              }
  let(:directions) { [ attribute.asc ]                        }
  let(:object)     { klass.new(directions)                    }

  it_should_behave_like 'a hash method'

  it { should == klass.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/direction_set/hash_spec.rb