require "savon_helper" module LeadFixtures include SavonHelper private def leads_xml(body) < #{body} XML end def xml_lead_response leads_xml(<1 #{stream_position} 65835 manyo@marbketo.com Name string manyo 67508 everyleaf@marketo.com Name string everyleaf XML end def stream_position "next_steam_position" end def xml_lead_next leads_xml(<2 0 65835 ten-thousand-leaf@marketo.com Name string ten-thousand-leaf XML end def xml_lead_preview body = "" 15.times do |i| body << <2 0 #{65835 + i} manyo#{i}@marketo.com Name string manyo#{i} XML end leads_xml(body) end end