Sha256: 42c2d65aca512a8fd045eb9884bf65af1b02670a455b6ea6424f8ca23e0f72c4

Contents?: true

Size: 422 Bytes

Versions: 1

Compression:

Stored size: 422 Bytes

Contents

require 'spec_helper'

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

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

  it_should_behave_like 'a hash method'

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.2 spec/unit/veritas/relation/operation/order/direction/hash_spec.rb