Sha256: d5fead6a2af771ebfdb46aecc28d4f80ec3cd88d791cae082fe7b166720865a9

Contents?: true

Size: 614 Bytes

Versions: 1

Compression:

Stored size: 614 Bytes

Contents

require 'spec_helper'

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

  let(:klass)    { Relation::Operation::Limit                                  }
  let(:relation) { Relation.new([ [ :id, Integer ] ], [ [ 1 ], [ 2 ], [ 3 ] ]) }
  let(:operand)  { relation.order                                              }
  let(:limit)    { 1                                                           }
  let(:object)   { klass.new(operand, limit)                                   }

  it_should_behave_like 'a hash method'

  it { should == klass.hash ^ operand.hash ^ limit.hash }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.2 spec/unit/veritas/relation/operation/limit/hash_spec.rb