Sha256: d6179164f2257c26008a9b69885a6e3fb2c50f0de6eeae017937e3bd4fcadaf8
Contents?: true
Size: 427 Bytes
Versions: 5
Compression:
Stored size: 427 Bytes
Contents
Given(/^I have one auton$/) do class EmptyAuton include StructureMapper::Hash attribute foo: String end Nestene::Registry.register_auton(EmptyAuton) end When(/^I get the API list of auton types$/) do get '/auton_types' end Then(/^result should contain the auton type$/) do expect(last_response.status).to be(200) response = JSON.parse(last_response.body) expect(response).to include('EmptyAuton') end
Version data entries
5 entries across 5 versions & 1 rubygems