Sha256: 769a9675de5dccd1fd442332d2f8cc9ad6d6d882443f25ad5abf7fb2e14de7c2

Contents?: true

Size: 462 Bytes

Versions: 6

Compression:

Stored size: 462 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Relation::Operation::Order::Direction, '#hash' do
  subject { object.hash }

  let(:described_class) { Class.new(Relation::Operation::Order::Direction) }
  let(:attribute)       { Attribute::Integer.new(:id)                      }
  let(:object)          { described_class.new(attribute)                   }

  it_should_behave_like 'a hash method'

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

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
axiom-0.1.1 spec/unit/axiom/relation/operation/order/direction/hash_spec.rb
axiom-0.1.0 spec/unit/axiom/relation/operation/order/direction/hash_spec.rb
veritas-0.0.7 spec/unit/veritas/relation/operation/order/direction/hash_spec.rb
veritas-0.0.6 spec/unit/veritas/relation/operation/order/direction/hash_spec.rb
veritas-0.0.5 spec/unit/veritas/relation/operation/order/direction/hash_spec.rb
veritas-0.0.4 spec/unit/veritas/relation/operation/order/direction/hash_spec.rb