# File tests/drivers/mock/instances_test.rb, line 162 def test_z1_stop_created_instances $created_instances.each do |instance_id| get_auth_url "/api/instances/#{instance_id}", {} stop_url = (last_xml_response/'actions/link[@rel="stop"]').first['href'] stop_url.should_not == nil post_url stop_url, {} last_response.status.should == 200 instance = Nokogiri::XML(last_response.body) test_instance_attributes(instance) (instance/'state').text.should == 'STOPPED' end end