我跟隨Agile Web Developement with rails4 並在耙測試我得到這個失敗。 我無法弄清楚什麼是錯的......我知道這將導致問題assert_match /<td>1×<\/td>\s*<td>Programming Ruby 1.9<\/td>/, mail.body.encoded
我order_notifier_test,我shipped.text.erb
是在應用程序/視圖/ order_notifier耙測試失敗assert_match
失敗
OrderNotifierTest#test_shipped [Work/depot/test/mailers/order_notifier_test.rb:17]:
Expected /<td>1×<\/td>\s*<td>Programming Ruby 1.9<\/td>/ to match "<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 1 x Programming Ruby 1.9\r\n\r\n</table>\r\n".
隨意瀏覽存儲庫獲取更多信息(我的系統在那裏也有README.md)
謝謝你的解釋:) – Vasspilka