Sha256: 8e90585e7debf12f653a9423eaac9b24a72cc13f32d4fec5ac974702d24d3b8a
Contents?: true
Size: 338 Bytes
Versions: 1
Compression:
Stored size: 338 Bytes
Contents
# encoding: utf-8 When(/^I post the command "(.*?)" to "(.*?)" in the API$/) do |command, route| @response = API.post do |req| req.url "api/#{route}" req.params = {command: command} end end Then(/^it should be run on memcached and give a response$/) do expect(JSON.parse(@response.body)['response']).to match(/ineed/) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
memcached-manager-1.0.0 | features/step_definitions/api/run_command.rb |