Sha256: eb7e55ac0f796256218635a27ee7af50bbd8f412b9fe8e9e05b8287bfa9d68c9

Contents?: true

Size: 204 Bytes

Versions: 2

Compression:

Stored size: 204 Bytes

Contents

shared_examples_for 'a hash method' do
  it_should_behave_like 'an idempotent method'

  it { should be_kind_of(Fixnum) }

  it 'memoizes the hash code' do
    should == object.memoized('hash')
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
veritas-0.0.3 spec/shared/hash_method_behavior.rb
veritas-0.0.2 spec/shared/hash_method_behavior.rb