Sha256: c8be9363cc61a8417e8d09a55ec3ed09d42add7126d352c3ca01081a2bf55468

Contents?: true

Size: 380 Bytes

Versions: 4

Compression:

Stored size: 380 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

  let(:described_class) { Class.new(Aggregate)           }
  let(:object)          { described_class.new(attribute) }
  let(:attribute)       { Attribute::Integer.new(:id)    }

  it_should_behave_like 'a hash method'

  it { should == described_class.hash ^ attribute.hash }
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
axiom-0.1.1 spec/unit/axiom/aggregate/hash_spec.rb
axiom-0.1.0 spec/unit/axiom/aggregate/hash_spec.rb
veritas-0.0.7 spec/unit/veritas/aggregate/hash_spec.rb
veritas-0.0.6 spec/unit/veritas/aggregate/hash_spec.rb