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