Sha256: fbe39144fba10e441281fa5072ba85378f727ca16596dcd932984333223a50fc

Contents?: true

Size: 417 Bytes

Versions: 6

Compression:

Stored size: 417 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Algebra::Rename::Aliases, '#hash' do
  subject { object.hash }

  let(:attribute) { Attribute::Integer.new(:id)                  }
  let(:aliases)   { { attribute => attribute.rename(:other_id) } }
  let(:object)    { described_class.new(aliases)                 }

  it_should_behave_like 'a hash method'

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

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
axiom-0.1.1 spec/unit/axiom/algebra/rename/aliases/hash_spec.rb
axiom-0.1.0 spec/unit/axiom/algebra/rename/aliases/hash_spec.rb
veritas-0.0.7 spec/unit/veritas/algebra/rename/aliases/hash_spec.rb
veritas-0.0.6 spec/unit/veritas/algebra/rename/aliases/hash_spec.rb
veritas-0.0.5 spec/unit/veritas/algebra/rename/aliases/hash_spec.rb
veritas-0.0.4 spec/unit/veritas/algebra/rename/aliases/hash_spec.rb