Sha256: d3016d04bc3938fb9421a8f7c64cd21d779299a78db9a38d76c3d753f1e016e7

Contents?: true

Size: 435 Bytes

Versions: 6

Compression:

Stored size: 435 Bytes

Contents

# encoding: utf-8

require 'spec_helper'
require File.expand_path('../fixtures/classes', __FILE__)

describe Function::Predicate, '#hash' do
  subject { object.hash }

  let(:left)   { Attribute::Integer.new(:id)      }
  let(:right)  { 1                                }
  let(:object) { described_class.new(left, right) }

  it_should_behave_like 'a hash method'

  it { should == described_class.hash ^ left.hash ^ right.hash }
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
axiom-0.1.1 spec/unit/axiom/function/predicate/hash_spec.rb
axiom-0.1.0 spec/unit/axiom/function/predicate/hash_spec.rb
veritas-0.0.7 spec/unit/veritas/function/predicate/hash_spec.rb
veritas-0.0.6 spec/unit/veritas/function/predicate/hash_spec.rb
veritas-0.0.5 spec/unit/veritas/function/predicate/hash_spec.rb
veritas-0.0.4 spec/unit/veritas/function/predicate/hash_spec.rb