{"provider_name":"Hatena Blog","categories":["Ruby"],"version":"1.0","blog_title":"miyohide's blog","url":"https://miyohide.hatenablog.com/entry/20070506/1178421129","type":"rich","width":"100%","title":"\u4eca\u65e5\u306eRails","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmiyohide.hatenablog.com%2Fentry%2F20070506%2F1178421129\" title=\"\u4eca\u65e5\u306eRails - miyohide&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","provider_url":"https://hatena.blog","author_name":"miyohide","author_url":"https://blog.hatena.ne.jp/miyohide/","published":"2007-05-06 12:12:09","description":"\u30c6\u30b9\u30c8\u3067\u60aa\u6226\u82e6\u95d8\u4e2d\u3002\u7b2c12\u7ae0\u3092\u8aad\u307f\u9032\u3081\u3066\u3044\u305f\u3089\u3001assert_equal\u3067\u5931\u6557\u3059\u308b\u3068\u3053\u308d\u304c\u51fa\u3066\u304d\u305f\u3002 1) Failure: test_add_product(CartTest) [test/unit/cart_test.rb:30]: > expected but was . \u3093\uff1f\u30bd\u30fc\u30b9\u306f assert_equal(2*p1.price + p2.price, cart.total_price) \u3067\u3001\u305d\u308c\u305e\u308c\u306e\u5024\u304c48.13\u3067\u3042\u308b\u3053\u3068\u306fprint\u3057\u3066\u307f\u3066\u78ba\u304b\u3081\u305f\u3002\u554f\u984c\u3092\u5207\u308a\u5206\u3051\u308b\u3068\u3001 assert_equal(48.13,cart.total_price) \u3067\u5931\u6557\u3059\u308b\u3053\u3068\u304c\u308f\u304b\u3063\u305f\u30fb\u30fb\u30fb\u304c\u3069\u2026","blog_url":"https://miyohide.hatenablog.com/"}