Sha256: bac10d1b415709af4afeeb8e2ad39b29323ca1336434f2dc94562611936c35b7

Contents?: true

Size: 303 Bytes

Versions: 14

Compression:

Stored size: 303 Bytes

Contents

describe 'array' do
  it 'finds hash values' do
    array_of_hashes = [
      {
        line1: 3,
        line2: 5
      },
      {
        line3: 7,
        line4: 9
      }
    ]
    array_of_hashes.has_hash_value?(5).should.be.true
    array_of_hashes.has_hash_value?(4).should.not.be.true
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
motion-support-1.2.1 spec/motion-support/core_ext/array_spec.rb
motion-support-1.1.1 spec/motion-support/core_ext/array_spec.rb
motion-support-1.2.0 spec/motion-support/core_ext/array_spec.rb
motion-support-1.1.0 spec/motion-support/core_ext/array_spec.rb
motion-support-1.0.0 spec/motion-support/core_ext/array_spec.rb
motion-support-0.3.0 spec/motion-support/core_ext/array_spec.rb
motion_blender-support-0.2.8 spec/motion-support/core_ext/array_spec.rb
motion_blender-support-0.2.7 spec/motion-support/core_ext/array_spec.rb
motion-support-0.2.6 spec/motion-support/core_ext/array_spec.rb
motion-support-0.2.5 spec/motion-support/core_ext/array_spec.rb
motion-support-0.2.4 spec/motion-support/core_ext/array_spec.rb
motion-support-0.2.3 spec/motion-support/core_ext/array_spec.rb
motion-support-0.2.2 spec/motion-support/core_ext/array_spec.rb
motion-support-0.2.0 spec/motion-support/core_ext/array_spec.rb