{"type":"rich","author_name":"portaltan","published":"2015-10-28 11:17:57","provider_url":"https://hatena.blog","url":"https://portaltan.hatenablog.com/entry/2015/10/28/111757","blog_url":"https://portaltan.hatenablog.com/","width":"100%","provider_name":"Hatena Blog","image_url":null,"description":"Ruby\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u5165\u3063\u3066\u3044\u308b\u30c6\u30b9\u30c8\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306eUnit test\u306e\u4f7f\u3044\u65b9\u3067\u3059\u3002 \u3061\u306a\u307f\u306b\u4ee5\u524d\u66f8\u304d\u307e\u3057\u305f\u304cruby\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30c6\u30b9\u30c8\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306f\u5404version\u3067\u4e2d\u8eab\u304c\u9055\u3044\u307e\u3059\u3002portaltan.hatenablog.com \u4f7f\u3044\u65b9 \u6e96\u5099 unit.rb require 'test/unit' class SampleTest < Test::Unit::TestCase end 1. \u307e\u305a\u306f\u30c6\u30b9\u30c8\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b'test/unit'\u3092require\u3057\u307e\u3059 2. \u3064\u304e\u306bTest::Unit::TestCase\u3092\u7d99\u627f\u3057\u305fclass\u3092\u4f5c\u6210\u3057\u307e\u3059 ruby\u3067\u306fTest:\u2026","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fportaltan.hatenablog.com%2Fentry%2F2015%2F10%2F28%2F111757\" title=\"ruby\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306eUnit test\u306e\u4f7f\u3044\u65b9 - \u8133\u6c41portal\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["ruby"],"height":"190","title":"ruby\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306eUnit test\u306e\u4f7f\u3044\u65b9","blog_title":"\u8133\u6c41portal","author_url":"https://blog.hatena.ne.jp/portaltan/"}