Sha256: 7a0c1d39c981dcadc705708dffedb359e201a9089ca1f60f446d7b133a3aa18e

Contents?: true

Size: 1.37 KB

Versions: 15

Compression:

Stored size: 1.37 KB

Contents

@hashes
Feature: Enrich hashes

  @columnar
  Scenario: I should be able to enrich columnar hashes
    Given I have the following keys setup in Redis
      | key          | value      |
      | employees/10 | Employee 1 |
      | employees/20 | Employee 2 |
      | employees/3  | Employee 3 |
      | employees/4  | Employee 4 |
      | employers/4  | Employee 5 |
    When I ask DeepHash for metrics
    Then I should see the following "employee names" be injected into the hash at "$.table.inner_table"
      | value      |
      | Employee 1 |
      | Employee 2 |

  @object
  Scenario: I should be able to enrich object like hashes
    Given I have the following keys setup in Redis
      | key     | value    |
      | items/1 | Idly     |
      | items/2 | Pongal   |
      | items/3 | Off Menu |
    When I ask Menu for menu
    Then I should see the following "item name" enriched for each sub hash at "$.table.menu"
      | value  |
      | Idly   |
      | Pongal |

  @array_of_hashes
  Scenario: I should be able to enrich an array of hashes
    Given I have the following keys setup in Redis
      | key     | value    |
      | items/1 | Idly     |
      | items/2 | Pongal   |
      | items/3 | Off Menu |
    When I ask ArrayOfHash for menu
    Then I should see the following "item name" in all the hashes
      | value    |
      | Idly     |
      | Pongal   |
      | Off Menu |

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
looksist-0.3.12 features/hash_lookup.feature
looksist-0.3.11 features/hash_lookup.feature
looksist-0.3.10 features/hash_lookup.feature
looksist-0.3.9 features/hash_lookup.feature
looksist-0.3.8 features/hash_lookup.feature
looksist-0.3.7 features/hash_lookup.feature
looksist-0.3.6 features/hash_lookup.feature
looksist-0.3.5 features/hash_lookup.feature
looksist-0.3.4 features/hash_lookup.feature
looksist-0.3.3 features/hash_lookup.feature
looksist-0.3.2 features/hash_lookup.feature
looksist-0.3.1 features/hash_lookup.feature
looksist-0.3.0 features/hash_lookup.feature
looksist-0.2.10 features/hash_lookup.feature
looksist-0.2.9 features/hash_lookup.feature