Sha256: 7ea74ccbe457d4f528cb9b721c7e2c32b2cd2911607d81c7401ed4f52c96daca

Contents?: true

Size: 423 Bytes

Versions: 5

Compression:

Stored size: 423 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

  let(:operand) { Relation.new([ [ :id, Integer ] ], [ [ 1 ] ])  }
  let(:aliases) { described_class::Aliases.new(:id => :other_id) }
  let(:object)  { described_class.new(operand, aliases)          }

  it_should_behave_like 'a hash method'

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

Version data entries

5 entries across 5 versions & 2 rubygems

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