Sha256: 5b321ab55ca44af070c932a9e0026c50b9ce5ba7e2e87e9b38268538e9f896db

Contents?: true

Size: 507 Bytes

Versions: 1

Compression:

Stored size: 507 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

  let(:relation) { Relation.new([[:id, Integer]], [[1], [2], [3]]) }
  let(:operand)  { relation.sort_by { |r| r.id }                   }
  let(:limit)    { 1                                               }
  let(:object)   { described_class.new(operand, limit)             }

  it_should_behave_like 'a hash method'

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axiom-0.1.1 spec/unit/axiom/relation/operation/limit/hash_spec.rb