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.2.3 features/step_definitions/bucket_lookup_steps.rb
looksist-0.2.2 features/step_definitions/bucket_lookup_steps.rb
looksist-0.2.1 features/step_definitions/bucket_lookup_steps.rb
looksist-0.2.0 features/step_definitions/bucket_lookup_steps.rb
looksist-0.1.9 features/step_definitions/bucket_lookup_steps.rb
looksist-0.1.8 features/step_definitions/bucket_lookup_steps.rb
looksist-0.1.7 features/step_definitions/bucket_lookup_steps.rb