When(/^I get the API list of autons$/) do get '/autons.json' end Then(/^result should contain the started auton$/) do expect(last_response).to be_ok expect(JSON.parse(last_response.body)).not_to be_empty end