content: "According to the creator of scientology: Stemming from his belief that birth is a trauma that may induce engrams, he stated that the delivery room should be as silent as possible and that words should be avoided because any words used during birth might be reassociated by adults with their earlier traumatic birth experience. And bla bla bla bla bla ..."
sections: junk_food_news, pseudoscientific_claims
@@ -25,7 +25,7 @@
content: We was informed that Tinkerbel, a very known celebrity (a Chihuahua owned by another not so known person), is pregnant. Yesterday she made an ultrasonography to know if is she or he. Ohh, Tinkerbel, congratulations.
order_receipt:
- name: order_receipt
+ name: OrderReceipt
created_on: 2001-01-01 06:00:00 -02:00
title: Thank you for your order!
type: Snippet
@@ -66,5 +66,8 @@
<b>some content added here</b>
let's plug tiny mice into this
- <a href="http://dev.subimage.com/projects/substruct/wiki/Customizing">Click here to learn more about customizing Substruct</a>.</div>
+ <a href="http://dev.subimage.com/projects/substruct/wiki/Customizing">Click here to learn more about customizing Substruct</a>.
+ notes: <%= "<p>Order failed!<br/>(TESTMODE) The merchant login ID or password is invalid or the account is inactive<br/><span class=\"info\">[#{1.hour.ago.strftime("%m-%d-%y %I:%M %p")}]</span></p>" %>
+ notes: <%= "<p>The order was processed at PayPal but not yet confirmed.<br/><span class=\"info\">[05#{1.hour.ago.strftime("%m-%d-%y %I:%M %p")}]</span></p>" %>
+ assert !Order.matches_ipn(wrong_notification, an_order, complete_params), "It should have failed because :mc_gross."
+
+ # Change the parameter business and it should fail.
+ assert !Order.matches_ipn(notification, an_order, complete_params.merge({ :business => "somebody@else" })), "It should have failed because :business."
+
+ # It should fail if finds another order with the same txn_id.