small medium large xlarge

29 Apr 2011, 04:37
Zhao Han (4 posts)

Both test_order_received and test_order_shipped fails. It seems “You ordered the following items” is empty…

1) Failure: test_order_received(NotifierTest) [/test/functional/notifier_test.rb:11]: <”Dear Dave Thomas\r\n\r\nThank you for your recent order from The Pragmatic Store.\r\n\r\nYou ordered the following items:\r\n\r\n\r\n\r\nWe’ll send you a separate e-mail when your order ships.\r\n”> expected to be =~ </1 x Programming Ruby 1.9/>.

2) Failure: test_order_shipped(NotifierTest) [/test/functional/notifier_test.rb:19]: <”\r\n\r\n—-==_mimepart_4dba374849d53_243724485726262e2\r\nDate: Thu, 28 Apr 2011 22:58:00 -0500\r\nMime-Version: 1.0\r\nContent-Type: text/plain;\r\n charset=UTF-8\r\nContent-Transfer-Encoding: 7bit\r\nContent-ID: <4dba37484ca01_2437244857262637c@unix.mail>\r\n\r\nNotifier#order_shipped\r\n\r\n, find me in app/views/app/views/notifier/order_shipped.text.erb\r\n\r\n\r\n—-==_mimepart_4dba374849d53_243724485726262e2\r\nDate: Thu, 28 Apr 2011 22:58:00 -0500\r\nMime-Version: 1.0\r\nContent-Type: text/html;\r\n charset=UTF-8\r\nContent-Transfer-Encoding: 7bit\r\nContent-ID: <4dba37484ddc2_24372448572626475@unix.mail>\r\n\r\n<h3>Pragmatic Order Shipped</h3>\r\n<p>\r\n This is just to let you know that we’ve shipped your recent order:\r\n</p>\r\n\r\n<table>\r\n <tr><th colspan="2">Qty</th><th>Description</th></tr>\r\n\r\n</table>\r\n\r\n\r\n—-==_mimepart_4dba374849d53_243724485726262e2–\r\n”> expected to be =~ </<td>1×<\/td>\s*<td>Programming Ruby 1.9<\/td>/>.

Thanks in advance.

02 May 2011, 12:52
Suresh Iyer (6 posts)

Same issue here.. so far only the Playtime was challenging at times. Now the normal text in itself appears magical :). I think there is some missing link in the text – linking product fixture and order or something like that, and I have no idea how to fix it. Any help would be appreciated.

05 Aug 2011, 18:33
Trond Eivind Glomsrød (2 posts)

Same problem here, on rails 3.0.9. The test setup order object just doesn’t seem to have a link to any lineitems.

07 Aug 2011, 08:47
Trond Eivind Glomsrød (2 posts)

Just add a “order: one” to the entries in line_items.yml, and it will work.

You must be logged in to comment