Sha256: 364b48a05c2365b63f70760f115dec098cf6090640560d440dc6d3c63550e8de

Contents?: true

Size: 470 Bytes

Versions: 27

Compression:

Stored size: 470 Bytes

Contents

Given(/^I have the following keys setup in Redis$/) do |table|
  Looksist.lookup_store.flushall
  table.hashes.each { |row| Looksist.lookup_store.set(row[:key], row[:value]) }
end

When(/^I ask looksist to lookup by pattern "([^"]*)"$/) do |arg|
  @last_response = Looksist.bucket_dump "#{arg}"
end

Then(/^I see the response to be the following$/) do |table|
  expect(table.hashes.each_with_object({}){|row, acc| acc[row[:key]] = row[:value]}).to eq(@last_response)
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
looksist-0.3.12 features/step_definitions/bucket_lookup_steps.rb
looksist-0.3.11 features/step_definitions/bucket_lookup_steps.rb
looksist-0.3.10 features/step_definitions/bucket_lookup_steps.rb
looksist-0.3.9 features/step_definitions/bucket_lookup_steps.rb
looksist-0.3.8 features/step_definitions/bucket_lookup_steps.rb
looksist-0.3.7 features/step_definitions/bucket_lookup_steps.rb
looksist-0.3.6 features/step_definitions/bucket_lookup_steps.rb
looksist-0.3.5 features/step_definitions/bucket_lookup_steps.rb
looksist-0.3.4 features/step_definitions/bucket_lookup_steps.rb
looksist-0.3.3 features/step_definitions/bucket_lookup_steps.rb
looksist-0.3.2 features/step_definitions/bucket_lookup_steps.rb
looksist-0.3.1 features/step_definitions/bucket_lookup_steps.rb
looksist-0.3.0 features/step_definitions/bucket_lookup_steps.rb
looksist-0.2.10 features/step_definitions/bucket_lookup_steps.rb
looksist-0.2.9 features/step_definitions/bucket_lookup_steps.rb
looksist-0.2.8 features/step_definitions/bucket_lookup_steps.rb
looksist-0.2.7 features/step_definitions/bucket_lookup_steps.rb
looksist-0.2.6 features/step_definitions/bucket_lookup_steps.rb
looksist-0.2.5 features/step_definitions/bucket_lookup_steps.rb
looksist-0.2.4 features/step_definitions/bucket_lookup_steps.rb