# encoding: utf-8 require 'spec_helper' require 'timecop' module Clearsale describe Order do describe ".to_xml" do it "converts the order to xml successfully" do Timecop.freeze Time.parse('2012-07-01 11:13') _order = Object.new(order) _payment = Object.new(payment) _user = Object.new(user) described_class.to_xml(_order, _payment, _user).should eq '12342012-07-01T11:13:00petergriffin@abc.com20.025.033127.0.0.18888124878346337Peter Löwenbräu Griffin1972-07-01T11:13:00petergriffin@abc.comm
Billing Street123Rhode IslandMaylandMaryland00100-011
01180011002
8888124878346337Peter Löwenbräu Griffin1972-07-01T11:13:00petergriffin@abc.comm
Shipping Street123Rhode IslandMaylandMaryland00100-011
01180011002
2012-07-01T11:12:5850.0131234432111112222123443405/201224878346337
Billing Street123Rhode IslandMaylandMaryland00100-011
5555Pogobol5.027777Disney5555Pogobol5.027777Disney
' end end end end