Sha256: 7cf40a4124d3c48c87c05ca3b649102d9167cc0736cf78402b4680c9030af96c

Contents?: true

Size: 443 Bytes

Versions: 1

Compression:

Stored size: 443 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

  let(:object)    { described_class.new([ attribute ], :keys => keys) }
  let(:attribute) { Attribute::Integer.new(:id)                       }
  let(:keys)      { Relation::Keys.new                                }

  it_should_behave_like 'a hash method'

  it { should == described_class.hash ^ Set[attribute].hash ^ keys.hash }
end

Version data entries

1 entries across 1 versions & 1 rubygems

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