act_as_system_user do
node = ping_node(:new_with_custom_hostname, {})
Node.expects(:dns_server_update).with(node.hostname, Node::UNUSED_NODE_IP)
act_as_system_user do
node = ping_node(:new_with_custom_hostname, {})
Node.expects(:dns_server_update).with(node.hostname, Node::UNUSED_NODE_IP)