Sha256: 5f8c3937c9579100d885658c8883e809fd89fd9389770373a0ea31f4ce363dc0

Contents?: true

Size: 557 Bytes

Versions: 9

Compression:

Stored size: 557 Bytes

Contents

# Scenario: Success
Given /^there's the "(.*?)" memcached key avaiable$/ do |key|
  @key = key
  Memcached.set(@key, 'John Doe')
end

Then /^I should receive a json response with this key$/ do
  @response.class.should eql Hash
  @response["key"].should include 'name'
  @response["value"].should include 'John Doe'
end

# Scenario: Key doesn't exist
Then /^I should receive a json telling me that the key doesn't exist$/ do
  @response.class.should eql Hash
  @response.keys.should include 'errors'
  @response["errors"].should include 'Key not found.'
end

Version data entries

9 entries across 9 versions & 1 rubygems

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