Sha256: f1b2448c0740be0a291c701fad32c85259b08fee9e4e7255efc5b515cd02a20f

Contents?: true

Size: 496 Bytes

Versions: 1

Compression:

Stored size: 496 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

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

  it_should_behave_like 'a hash method'

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

Version data entries

1 entries across 1 versions & 1 rubygems

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