Sha256: 395a428fe8c672e531b8adde9536eee470878200e97fdb66c18f50200fec7a24

Contents?: true

Size: 441 Bytes

Versions: 8

Compression:

Stored size: 441 Bytes

Contents

# encoding: utf-8

Given /^there's some memcached keys avaiable$/ do
  Memcached.set('foo', 'bar')
  Memcached.set('ineed', 'togetalife')
end

When /^I visit "(.*?)" in the API$/ do |route|
  @response = JSON.parse(API.get("api/#{route}").body)
end

Then /^I should receive a json response with those keys$/ do
  @response.should_not equal nil
  @response.last.values.should include 'foo'
  @response.first.values.should include 'ineed'
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
memcached-manager-0.4.0 features/step_definitions/api/list_memcached_keys.rb
memcached-manager-0.3.0 features/step_definitions/api/list_memcached_keys.rb
memcached-manager-0.2.2 features/step_definitions/api/list_memcached_keys.rb
memcached-manager-0.2.1 features/step_definitions/api/list_memcached_keys.rb
memcached-manager-0.2.0 features/step_definitions/api/list_memcached_keys.rb
memcached-manager-0.1.0 features/step_definitions/api/list_memcached_keys.rb
memcached-manager-0.0.1 features/step_definitions/api/list_memcached_keys.rb
memcached-manager-0.0.0 features/step_definitions/api/list_memcached_keys.rb