Sha256: 05a7d60f556a4485ccb36655ce946e375c1b85e5d79cbe24c374315b3b3e13cb
Contents?: true
Size: 555 Bytes
Versions: 4
Compression:
Stored size: 555 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
4 entries across 4 versions & 2 rubygems