Sha256: 47b75687aed473451aab719e249e6be0d2c279e7bd8c774dd1fabe4441710e14

Contents?: true

Size: 482 Bytes

Versions: 1

Compression:

Stored size: 482 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

  let(:header) { Relation::Header.coerce([ [ :id, Integer ] ]) }
  let(:body)   { LazyEnumerable.new                            }
  let(:object) { described_class.new(header, body)             }

  before do
    object.should be_instance_of(described_class)
  end

  it_should_behave_like 'a hash method'

  it { should == described_class.hash ^ header.hash ^ body.to_set.hash }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axiom-0.1.0 spec/unit/axiom/relation/hash_spec.rb