Sha256: 1936be8cdea237feee6e72f55cf1bebfec34a825da7f26a203c701949434c137

Contents?: true

Size: 480 Bytes

Versions: 1

Compression:

Stored size: 480 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

  let(:name)   { :users                                    }
  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.1 spec/unit/axiom/relation/base/hash_spec.rb