Sha256: 705913fc94041b3cbd957de7703cccdb7b1a076bfb5cda425b336f2b325e5351
Contents?: true
Size: 616 Bytes
Versions: 1
Compression:
Stored size: 616 Bytes
Contents
require 'spec_helper' describe 'Veritas::Relation::Operation::Offset#hash' do subject { object.hash } let(:klass) { Relation::Operation::Offset } let(:relation) { Relation.new([ [ :id, Integer ] ], [ [ 1 ], [ 2 ], [ 3 ] ]) } let(:operand) { relation.order } let(:offset) { 1 } let(:object) { klass.new(operand, offset) } it_should_behave_like 'a hash method' it { should == klass.hash ^ operand.hash ^ offset.hash } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/relation/operation/offset/hash_spec.rb |