Sha256: 55eecf11e5ecf6894da5cb52110e68575adc22899b0897818ab9b6eeb2c59193
Contents?: true
Size: 599 Bytes
Versions: 4
Compression:
Stored size: 599 Bytes
Contents
require 'spec_helper' module Alf describe Relation, 'hash' do let(:tuple){ Relation[id: Integer].coerce(id: 12) } subject{ tuple.hash == other.hash } context 'on purely equal relation' do let(:other){ Relation[id: Integer].coerce(id: 12) } it{ should be_true } end context 'on equal relation but a subtype' do let(:other){ Relation[id: Fixnum].coerce(id: 12) } it{ should be_true } end context 'on equal relation but a supertype' do let(:other){ Relation[id: Numeric].coerce(id: 12) } it{ should be_true } end end end
Version data entries
4 entries across 4 versions & 1 rubygems