Sha256: 155eaf757b6bbef8bbbe92860eb464f747a808f667459da0112dbb724b593e6e
Contents?: true
Size: 326 Bytes
Versions: 115
Compression:
Stored size: 326 Bytes
Contents
# encoding: utf-8 shared_examples_for 'a hash method' do it_should_behave_like 'an idempotent method' specification = proc do should be_instance_of(Fixnum) end it 'is a fixnum' do instance_eval(&specification) end it 'memoizes the hash code' do subject.should eql(object.memoized(:hash)) end end
Version data entries
115 entries across 96 versions & 11 rubygems