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

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/inflecto-0.0.2/spec/shared/hash_method_behavior.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/inflecto-0.0.2/spec/shared/hash_method_behavior.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/inflecto-0.0.2/spec/shared/hash_method_behavior.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/inflecto-0.0.2/spec/shared/hash_method_behavior.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/inflecto-0.0.2/spec/shared/hash_method_behavior.rb
mutant-0.5.13 test_app/spec/shared/hash_method_behavior.rb
mutant-0.5.12 test_app/spec/shared/hash_method_behavior.rb
mutant-0.5.11 test_app/spec/shared/hash_method_behavior.rb
mutant-0.5.10 test_app/spec/shared/hash_method_behavior.rb
mutant-0.5.9 test_app/spec/shared/hash_method_behavior.rb
mutant-0.5.8 test_app/spec/shared/hash_method_behavior.rb
mutant-0.5.7 test_app/spec/shared/hash_method_behavior.rb
mutant-0.5.6 test_app/spec/shared/hash_method_behavior.rb
mutant-0.5.5 test_app/spec/shared/hash_method_behavior.rb
mutant-0.5.4 test_app/spec/shared/hash_method_behavior.rb
mutant-0.5.3 test_app/spec/shared/hash_method_behavior.rb
mutant-0.5.2 test_app/spec/shared/hash_method_behavior.rb
mutant-0.5.1 test_app/spec/shared/hash_method_behavior.rb
mutant-0.5.0 test_app/spec/shared/hash_method_behavior.rb
mutant-0.3.6 test_app/spec/shared/hash_method_behavior.rb