jayzes / cucumber-api-steps

Cucumber steps to easily test REST-based XML and JSON APIs

Repository from Github https://github.comjayzes/cucumber-api-stepsRepository from Github https://github.comjayzes/cucumber-api-steps

Error while extending step definitions in Rails project

emilsoman opened this issue · comments

If I copy the step definition that makes the request from the gem and paste it in the features/step_definitions/custom_steps.rb (with some parameter modifications) and use this custom step in a scenario, the JSON response step throws the following error :

No response yet. Request a page first. (Rack::Test::Error)

I can see that the controller action is receiving the request and a Rack::MockSession is created. Any clue why the error occurs ?

I know it's hard to understand the problem with such a vague description. Please let me know what other information will be helpful to point out the problem here. Thanks !

I have the same problem – does anyone know a solution for this?