# File tests/drivers/mock/instances_test.rb, line 190 def test_z2_destroy_created_instances $created_instances.each do |instance_id| get_auth_url "/api/instances/#{instance_id}", {} destroy_url = (last_xml_response/'actions/link[@rel="destroy"]').first['href'] destroy_url.should_not == nil delete_url destroy_url, {} last_response.status.should == 204 end end