Sha256: 4bffc95e47279f6c7c5123feeb36093224a0c0932d0127fc7e9dbce14546d220

Contents?: true

Size: 400 Bytes

Versions: 28

Compression:

Stored size: 400 Bytes

Contents

require "spec_helper"

describe Praxis::Types::FuzzyHash do

  let(:initial_value) {{
    'key' => 'value',
    /bob/ => 'rob',
    /\d+/ => 'one'
  }}

  subject(:hash) { Praxis::Types::FuzzyHash.new(initial_value) }

  its(['key']) { should eq 'value' }
  its([/bob/]) { should eq 'rob' }
  its(['bobby']) { should eq 'rob' }
  
  its([1]) { should eq 'one' }
  its(['1']) { should eq 'one' }
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
praxis-2.0.pre.18 spec/praxis/types/fuzzy_hash_spec.rb
praxis-2.0.pre.17 spec/praxis/types/fuzzy_hash_spec.rb
praxis-2.0.pre.16 spec/praxis/types/fuzzy_hash_spec.rb
praxis-2.0.pre.15 spec/praxis/types/fuzzy_hash_spec.rb
praxis-2.0.pre.14 spec/praxis/types/fuzzy_hash_spec.rb
praxis-2.0.pre.13 spec/praxis/types/fuzzy_hash_spec.rb
praxis-2.0.pre.12 spec/praxis/types/fuzzy_hash_spec.rb
praxis-2.0.pre.11 spec/praxis/types/fuzzy_hash_spec.rb
praxis-2.0.pre.10 spec/praxis/types/fuzzy_hash_spec.rb
praxis-2.0.pre.9 spec/praxis/types/fuzzy_hash_spec.rb
praxis-2.0.pre.8 spec/praxis/types/fuzzy_hash_spec.rb
praxis-2.0.pre.7 spec/praxis/types/fuzzy_hash_spec.rb
praxis-2.0.pre.6 spec/praxis/types/fuzzy_hash_spec.rb
praxis-2.0.pre.5 spec/praxis/types/fuzzy_hash_spec.rb
praxis-2.0.pre.4 spec/praxis/types/fuzzy_hash_spec.rb
praxis-2.0.pre.3 spec/praxis/types/fuzzy_hash_spec.rb
praxis-2.0.pre.2 spec/praxis/types/fuzzy_hash_spec.rb
praxis-2.0.pre.1 spec/praxis/types/fuzzy_hash_spec.rb
praxis-0.22.pre.2 spec/praxis/types/fuzzy_hash_spec.rb
praxis-0.22.pre.1 spec/praxis/types/fuzzy_hash_spec.rb