Sha256: 16a5a084f3a104bb1870198a5ac7e0ffb401b85948ccaf39e12a6e2571afd86a
Contents?: true
Size: 456 Bytes
Versions: 1
Compression:
Stored size: 456 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Algebra::Extension, '#hash' do subject { object.hash } let(:operand) { Relation.new([ [ :id, Integer ] ], [ [ 1 ], [ 2 ] ]) } let(:extensions) { { Attribute::Integer.new(:test) => 1 } } let(:object) { described_class.new(operand, extensions) } it_should_behave_like 'a hash method' it { should == described_class.hash ^ operand.hash ^ extensions.hash } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.1.0 | spec/unit/axiom/algebra/extension/hash_spec.rb |