spec/store/invoice_spec.rb in caren-api-0.5.8 vs spec/store/invoice_spec.rb in caren-api-0.5.9
- old
+ new
@@ -27,9 +27,15 @@
new_object.attributes.delete :shipping_address
new_object.attributes.delete :line_items
new_object.attributes.should == @invoice_a.attributes
end
+
+ it "should generate correct mark as paid xml" do
+ hash = Hash.from_xml( Caren::Store::Invoice.mark_as_paid_xml("cash","test") )
+ hash["invoice"]["payment_method"].should == "cash"
+ hash["invoice"]["payment_method_description"].should == "test"
+ end
end
describe "Store::Invoice", "REST methods" do